diff options
author | Connor Brewster <connor.brewster@eagles.oc.edu> | 2017-07-07 15:18:23 -0600 |
---|---|---|
committer | Connor Brewster <connor.brewster@eagles.oc.edu> | 2017-07-17 22:23:47 -0600 |
commit | 9b587a4f2d1d8abc70fa6d6220ac31e6dac32c72 (patch) | |
tree | 56b448f2841d0dd44cf8ce34fc063fae88d85737 /components/script/script_thread.rs | |
parent | 46659915036bb44e73e7ef2696ea9f35105f1659 (diff) | |
download | servo-9b587a4f2d1d8abc70fa6d6220ac31e6dac32c72.tar.gz servo-9b587a4f2d1d8abc70fa6d6220ac31e6dac32c72.zip |
Invoke backup element queue via a microtask
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r-- | components/script/script_thread.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index 1953f5691bd..7e171a1f048 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -755,6 +755,15 @@ impl ScriptThread { }) } + pub fn invoke_backup_element_queue() { + SCRIPT_THREAD_ROOT.with(|root| { + if let Some(script_thread) = root.get() { + let script_thread = unsafe { &*script_thread }; + script_thread.custom_element_reaction_stack.invoke_backup_element_queue(); + } + }) + } + /// Creates a new script thread. pub fn new(state: InitialScriptState, port: Receiver<MainThreadScriptMsg>, |