diff options
author | Auguste Baum <52001167+augustebaum@users.noreply.github.com> | 2025-02-20 17:17:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-20 16:17:45 +0000 |
commit | 863d2ce8710fc5141b2c8fd0743697c0956412cb (patch) | |
tree | 05d3f853fa53b38a359427ac3d9ff19b7bc75db6 /components/script/script_thread.rs | |
parent | 5465bfc2af38e561df5f0a7f81250a0238520d6d (diff) | |
download | servo-863d2ce8710fc5141b2c8fd0743697c0956412cb.tar.gz servo-863d2ce8710fc5141b2c8fd0743697c0956412cb.zip |
Propagate `CanGc` arguments through callers in constructors (#35541)
Signed-off-by: Auguste Baum <auguste.apple@gmail.com>
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r-- | components/script/script_thread.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index 22a4e2e9e9b..fcb7d714f4f 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -3591,8 +3591,12 @@ impl ScriptThread { ) { let window = self.documents.borrow().find_window(pipeline_id); if let Some(window) = window { - let entry = - PerformancePaintTiming::new(window.as_global_scope(), metric_type, metric_value); + let entry = PerformancePaintTiming::new( + window.as_global_scope(), + metric_type, + metric_value, + can_gc, + ); window .Performance() .queue_entry(entry.upcast::<PerformanceEntry>(), can_gc); |