mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
#23330 fix clear_entries_by_name_and_type bug
This commit is contained in:
parent
d25d658219
commit
7d184c1b01
1 changed files with 2 additions and 2 deletions
|
@ -96,10 +96,10 @@ impl PerformanceEntryList {
|
|||
entry_type: Option<DOMString>,
|
||||
) {
|
||||
self.entries.retain(|e| {
|
||||
name.as_ref().map_or(true, |name_| *e.name() == *name_) &&
|
||||
name.as_ref().map_or(true, |name_| *e.name() != *name_) &&
|
||||
entry_type
|
||||
.as_ref()
|
||||
.map_or(true, |type_| *e.entry_type() == *type_)
|
||||
.map_or(true, |type_| *e.entry_type() != *type_)
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue