mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
Use Filter buffer by name and type
algorithm implementation (fixes #18186)
This commit is contained in:
parent
ced303b9cb
commit
d090ce6689
2 changed files with 6 additions and 24 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue