diff options
author | CYBAI <cyb.ai.815@gmail.com> | 2019-03-31 21:16:32 +0900 |
---|---|---|
committer | CYBAI <cyb.ai.815@gmail.com> | 2019-03-31 21:19:42 +0900 |
commit | e88858388a250738153202666a90fae157d09ca0 (patch) | |
tree | f7e8ed01645194fe1f1352c8e444814da0a553cc /components/script/script_thread.rs | |
parent | 793b41299b72eca3b24b20a7d7dcd09401095225 (diff) | |
download | servo-e88858388a250738153202666a90fae157d09ca0.tar.gz servo-e88858388a250738153202666a90fae157d09ca0.zip |
Remove compound microtasks
We handled compound microtasks as microtasks so, basically, we only need
to remove the naming of `compound`.
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r-- | components/script/script_thread.rs | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index 41a7192e70a..1a5e2d73860 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -615,7 +615,7 @@ pub struct ScriptThread { microtask_queue: Rc<MicrotaskQueue>, /// Microtask Queue for adding support for mutation observer microtasks - mutation_observer_compound_microtask_queued: Cell<bool>, + mutation_observer_microtask_queued: Cell<bool>, /// The unit of related similar-origin browsing contexts' list of MutationObserver objects mutation_observers: DomRefCell<Vec<Dom<MutationObserver>>>, @@ -767,21 +767,17 @@ impl ScriptThread { }) } - pub fn set_mutation_observer_compound_microtask_queued(value: bool) { + pub fn set_mutation_observer_microtask_queued(value: bool) { SCRIPT_THREAD_ROOT.with(|root| { let script_thread = unsafe { &*root.get().unwrap() }; - script_thread - .mutation_observer_compound_microtask_queued - .set(value); + script_thread.mutation_observer_microtask_queued.set(value); }) } - pub fn is_mutation_observer_compound_microtask_queued() -> bool { + pub fn is_mutation_observer_microtask_queued() -> bool { SCRIPT_THREAD_ROOT.with(|root| { let script_thread = unsafe { &*root.get().unwrap() }; - return script_thread - .mutation_observer_compound_microtask_queued - .get(); + return script_thread.mutation_observer_microtask_queued.get(); }) } @@ -1145,7 +1141,7 @@ impl ScriptThread { microtask_queue: Default::default(), - mutation_observer_compound_microtask_queued: Default::default(), + mutation_observer_microtask_queued: Default::default(), mutation_observers: Default::default(), |