diff options
Diffstat (limited to 'components/script/dom/performanceobserver.rs')
-rw-r--r-- | components/script/dom/performanceobserver.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/performanceobserver.rs b/components/script/dom/performanceobserver.rs index d1c7fe78739..86955792b50 100644 --- a/components/script/dom/performanceobserver.rs +++ b/components/script/dom/performanceobserver.rs @@ -93,13 +93,13 @@ impl PerformanceObserver { /// Trigger performance observer callback with the list of performance entries /// buffered since the last callback call. - pub(crate) fn notify(&self) { + pub(crate) fn notify(&self, can_gc: CanGc) { if self.entries.borrow().is_empty() { return; } let entry_list = PerformanceEntryList::new(self.entries.borrow_mut().drain(..).collect()); let observer_entry_list = - PerformanceObserverEntryList::new(&self.global(), entry_list, CanGc::note()); + PerformanceObserverEntryList::new(&self.global(), entry_list, can_gc); // using self both as thisArg and as the second formal argument let _ = self .callback |