aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_thread.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2017-09-13 10:09:43 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2017-09-13 14:27:42 +0200
commit7f9f95b7ce7e7407b7b6b291a6ad452f48c2374b (patch)
tree3d9da16042ce97a6f7f94e0e9a018d84d26f62f6 /components/script/script_thread.rs
parentfe29037e89afa72c06e116b33477db8787c7330e (diff)
downloadservo-7f9f95b7ce7e7407b7b6b291a6ad452f48c2374b.tar.gz
servo-7f9f95b7ce7e7407b7b6b291a6ad452f48c2374b.zip
Store microtask queues in Rc<T>
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r--components/script/script_thread.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs
index a29896f70f5..597d1dce11c 100644
--- a/components/script/script_thread.rs
+++ b/components/script/script_thread.rs
@@ -515,7 +515,8 @@ pub struct ScriptThread {
content_process_shutdown_chan: IpcSender<()>,
- microtask_queue: MicrotaskQueue,
+ /// https://html.spec.whatwg.org/multipage/#microtask-queue
+ microtask_queue: Rc<MicrotaskQueue>,
/// Microtask Queue for adding support for mutation observer microtasks
mutation_observer_compound_microtask_queued: Cell<bool>,
@@ -892,7 +893,7 @@ impl ScriptThread {
content_process_shutdown_chan: state.content_process_shutdown_chan,
- microtask_queue: MicrotaskQueue::default(),
+ microtask_queue: Default::default(),
mutation_observer_compound_microtask_queued: Default::default(),