mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Invoke backup element queue via a microtask
This commit is contained in:
parent
4665991503
commit
9b587a4f2d
15 changed files with 252 additions and 7 deletions
|
@ -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>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue