diff options
author | Auguste Baum <52001167+augustebaum@users.noreply.github.com> | 2025-02-23 01:34:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-23 00:34:51 +0000 |
commit | b0b0289014b707505a6921152b9ecba75afa207f (patch) | |
tree | f2ffba650cf28da83904b14e94ba3913967951f2 /components/script/dom/performanceobserver.rs | |
parent | 02199520f2b611c9b5ab7b34a2372689cb4c22cd (diff) | |
download | servo-b0b0289014b707505a6921152b9ecba75afa207f.tar.gz servo-b0b0289014b707505a6921152b9ecba75afa207f.zip |
refactor: propagate CanGc arguments through callers (#35591)
Signed-off-by: Auguste Baum <auguste.apple@gmail.com>
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 |