aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_thread.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2017-01-12 12:53:53 -0500
committerJosh Matthews <josh@joshmatthews.net>2017-02-01 12:54:33 -0500
commitb5d2bd757b45aa7f1e61c947d883eb977c6ad7af (patch)
treea43aaa5c69190004106f8fb49a29a06326cc77d4 /components/script/script_thread.rs
parent32d4f84a30035b6b1094f7e68adbe1e6a883bb9b (diff)
downloadservo-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.rs7
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| {