aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/task_source/mod.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2016-10-04 15:36:20 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2016-10-06 21:35:51 +0200
commit514819f37a12c79c0398863c2ef817c9a4337f56 (patch)
tree563259529244275a3003508c0d72bf7ae4c24197 /components/script/task_source/mod.rs
parentca8c6fb0724a364bdd11742a9c9611557595a6f7 (diff)
downloadservo-514819f37a12c79c0398863c2ef817c9a4337f56.tar.gz
servo-514819f37a12c79c0398863c2ef817c9a4337f56.zip
Introduce GlobalScope::get_runnable_wrapper
Diffstat (limited to 'components/script/task_source/mod.rs')
-rw-r--r--components/script/task_source/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/task_source/mod.rs b/components/script/task_source/mod.rs
index cb607c57acb..bddc4f82173 100644
--- a/components/script/task_source/mod.rs
+++ b/components/script/task_source/mod.rs
@@ -19,6 +19,6 @@ pub trait TaskSource {
-> Result<(), ()>
where T: Runnable + Send + 'static;
fn queue<T: Runnable + Send + 'static>(&self, msg: Box<T>, global: GlobalRef) -> Result<(), ()> {
- self.queue_with_wrapper(msg, &global.get_runnable_wrapper())
+ self.queue_with_wrapper(msg, &global.as_global_scope().get_runnable_wrapper())
}
}