From 7f9f95b7ce7e7407b7b6b291a6ad452f48c2374b Mon Sep 17 00:00:00 2001 From: Anthony Ramine Date: Wed, 13 Sep 2017 10:09:43 +0200 Subject: Store microtask queues in Rc --- components/script/dom/workletglobalscope.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'components/script/dom/workletglobalscope.rs') diff --git a/components/script/dom/workletglobalscope.rs b/components/script/dom/workletglobalscope.rs index c01989d746c..28c8cc27e7a 100644 --- a/components/script/dom/workletglobalscope.rs +++ b/components/script/dom/workletglobalscope.rs @@ -36,6 +36,7 @@ use script_traits::TimerSchedulerMsg; use servo_url::ImmutableOrigin; use servo_url::MutableOrigin; use servo_url::ServoUrl; +use std::rc::Rc; use std::sync::Arc; use std::sync::mpsc::Sender; @@ -46,8 +47,9 @@ pub struct WorkletGlobalScope { globalscope: GlobalScope, /// The base URL for this worklet. base_url: ServoUrl, - /// The microtask queue for this worklet - microtask_queue: MicrotaskQueue, + /// https://html.spec.whatwg.org/multipage/#microtask-queue + #[ignore_heap_size_of = "Rc is hard"] + microtask_queue: Rc, /// Sender back to the script thread #[ignore_heap_size_of = "channels are hard"] to_script_thread_sender: Sender, -- cgit v1.2.3