diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2016-10-04 15:49:48 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2016-10-06 21:35:52 +0200 |
commit | 44ca9f3d712e9b49681e9848db089a1c05c7ffff (patch) | |
tree | c4c5f0ea086d3859977d542bd337b6c3a60ef095 /components/script/task_source/mod.rs | |
parent | 514819f37a12c79c0398863c2ef817c9a4337f56 (diff) | |
download | servo-44ca9f3d712e9b49681e9848db089a1c05c7ffff.tar.gz servo-44ca9f3d712e9b49681e9848db089a1c05c7ffff.zip |
Make TaskSource::queue take a &GlobalScope
Diffstat (limited to 'components/script/task_source/mod.rs')
-rw-r--r-- | components/script/task_source/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/task_source/mod.rs b/components/script/task_source/mod.rs index bddc4f82173..6e2a9985fa0 100644 --- a/components/script/task_source/mod.rs +++ b/components/script/task_source/mod.rs @@ -8,7 +8,7 @@ pub mod history_traversal; pub mod networking; pub mod user_interaction; -use dom::bindings::global::GlobalRef; +use dom::globalscope::GlobalScope; use script_thread::{Runnable, RunnableWrapper}; use std::result::Result; @@ -18,7 +18,7 @@ pub trait TaskSource { wrapper: &RunnableWrapper) -> 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.as_global_scope().get_runnable_wrapper()) + fn queue<T: Runnable + Send + 'static>(&self, msg: Box<T>, global: &GlobalScope) -> Result<(), ()> { + self.queue_with_wrapper(msg, &global.get_runnable_wrapper()) } } |