aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_thread.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2016-10-04 16:00:40 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2016-10-06 21:35:52 +0200
commit6e3be6d894e311f2f2331d9437b4956fb5fd4752 (patch)
tree114654166621a26657020cab46c80532e9bbd7a3 /components/script/script_thread.rs
parent44ca9f3d712e9b49681e9848db089a1c05c7ffff (diff)
downloadservo-6e3be6d894e311f2f2331d9437b4956fb5fd4752.tar.gz
servo-6e3be6d894e311f2f2331d9437b4956fb5fd4752.zip
Introduce GlobalScope::flush_promise_jobs
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r--components/script/script_thread.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs
index b495cbadd06..b0814187f85 100644
--- a/components/script/script_thread.rs
+++ b/components/script/script_thread.rs
@@ -2180,11 +2180,11 @@ impl ScriptThread {
});
}
- pub fn flush_promise_jobs(global: GlobalRef) {
+ pub fn flush_promise_jobs(global: &GlobalScope) {
SCRIPT_THREAD_ROOT.with(|root| {
let script_thread = unsafe { &*root.get().unwrap() };
let _ = script_thread.dom_manipulation_task_source.queue(
- box FlushPromiseJobs, global.as_global_scope());
+ box FlushPromiseJobs, global);
})
}