mirror of
https://github.com/servo/servo
synced 2026-05-05 06:32:13 +02:00
Store microtask queues in Rc<T>
This commit is contained in:
@@ -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(),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user