diff options
author | Josh Matthews <josh@joshmatthews.net> | 2017-01-12 12:53:53 -0500 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2017-02-01 12:54:33 -0500 |
commit | b5d2bd757b45aa7f1e61c947d883eb977c6ad7af (patch) | |
tree | a43aaa5c69190004106f8fb49a29a06326cc77d4 /components/script/script_thread.rs | |
parent | 32d4f84a30035b6b1094f7e68adbe1e6a883bb9b (diff) | |
download | servo-b5d2bd757b45aa7f1e61c947d883eb977c6ad7af.tar.gz servo-b5d2bd757b45aa7f1e61c947d883eb977c6ad7af.zip |
Perform a microtask checkpoint after executing classic scripts and callbacks.
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r-- | components/script/script_thread.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index d204ab776b8..f54ff2ca097 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -567,6 +567,13 @@ impl ScriptThreadFactory for ScriptThread { } impl ScriptThread { + pub fn invoke_perform_a_microtask_checkpoint() { + SCRIPT_THREAD_ROOT.with(|root| { + let script_thread = unsafe { &*root.get().unwrap() }; + script_thread.perform_a_microtask_checkpoint() + }) + } + pub fn page_headers_available(id: &PipelineId, metadata: Option<Metadata>) -> Option<Root<ServoParser>> { SCRIPT_THREAD_ROOT.with(|root| { |