Invoke backup element queue via a microtask

This commit is contained in:
Connor Brewster 2017-07-07 15:18:23 -06:00
parent 4665991503
commit 9b587a4f2d
15 changed files with 252 additions and 7 deletions

View file

@ -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>,