aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/performanceobserver.rs
diff options
context:
space:
mode:
authorAuguste Baum <52001167+augustebaum@users.noreply.github.com>2025-02-23 01:34:51 +0100
committerGitHub <noreply@github.com>2025-02-23 00:34:51 +0000
commitb0b0289014b707505a6921152b9ecba75afa207f (patch)
treef2ffba650cf28da83904b14e94ba3913967951f2 /components/script/dom/performanceobserver.rs
parent02199520f2b611c9b5ab7b34a2372689cb4c22cd (diff)
downloadservo-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.rs4
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