From 7d184c1b01ef69e9ade2692936f9677d9d342104 Mon Sep 17 00:00:00 2001 From: Shinichi Morimoto Date: Wed, 11 Dec 2019 22:23:14 +0900 Subject: [PATCH] #23330 fix clear_entries_by_name_and_type bug --- components/script/dom/performance.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/script/dom/performance.rs b/components/script/dom/performance.rs index 1086fdbe712..b1f72f405f2 100644 --- a/components/script/dom/performance.rs +++ b/components/script/dom/performance.rs @@ -96,10 +96,10 @@ impl PerformanceEntryList { entry_type: Option, ) { 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_) }); }