aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/performanceobserverentrylist.rs
diff options
context:
space:
mode:
authorRaphaël Lustin <raphael@lustin.fr>2017-08-22 15:20:51 +0200
committerRaphaël Lustin <raphael@lustin.fr>2017-08-28 11:36:55 +0200
commitd090ce6689a69b8872362a4011bdb3fc87b1a93c (patch)
treec12467404d4b58c29367cfc2e59493d1f28bb1a0 /components/script/dom/performanceobserverentrylist.rs
parentced303b9cbc193b5ebf221cbf2048ac1e7d0d552 (diff)
downloadservo-d090ce6689a69b8872362a4011bdb3fc87b1a93c.tar.gz
servo-d090ce6689a69b8872362a4011bdb3fc87b1a93c.zip
Use `Filter buffer by name and type` algorithm implementation (fixes #18186)
Diffstat (limited to 'components/script/dom/performanceobserverentrylist.rs')
-rw-r--r--components/script/dom/performanceobserverentrylist.rs6
1 files changed, 3 insertions, 3 deletions
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<Root<PerformanceEntry>> {
- 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<Root<PerformanceEntry>> {
- 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<DOMString>)
-> Vec<Root<PerformanceEntry>> {
- self.entries.borrow().get_entries_by_name(name, entry_type)
+ self.entries.borrow().get_entries_by_name_and_type(Some(name), entry_type)
}
}