From d090ce6689a69b8872362a4011bdb3fc87b1a93c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Lustin?= Date: Tue, 22 Aug 2017 15:20:51 +0200 Subject: Use `Filter buffer by name and type` algorithm implementation (fixes #18186) --- components/script/dom/performanceobserverentrylist.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'components/script/dom/performanceobserverentrylist.rs') diff --git a/components/script/dom/performanceobserverentrylist.rs b/components/script/dom/performanceobserverentrylist.rs index 9c6a039cd4c..94f62248fbd 100644 --- a/components/script/dom/performanceobserverentrylist.rs +++ b/components/script/dom/performanceobserverentrylist.rs @@ -38,17 +38,17 @@ impl PerformanceObserverEntryList { impl PerformanceObserverEntryListMethods for PerformanceObserverEntryList { // https://w3c.github.io/performance-timeline/#dom-performanceobserver fn GetEntries(&self) -> Vec> { - self.entries.borrow().get_entries() + self.entries.borrow().get_entries_by_name_and_type(None, None) } // https://w3c.github.io/performance-timeline/#dom-performanceobserver fn GetEntriesByType(&self, entry_type: DOMString) -> Vec> { - self.entries.borrow().get_entries_by_type(entry_type) + self.entries.borrow().get_entries_by_name_and_type(None, Some(entry_type)) } // https://w3c.github.io/performance-timeline/#dom-performanceobserver fn GetEntriesByName(&self, name: DOMString, entry_type: Option) -> Vec> { - self.entries.borrow().get_entries_by_name(name, entry_type) + self.entries.borrow().get_entries_by_name_and_type(Some(name), entry_type) } } -- cgit v1.2.3