aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/task_source/dom_manipulation.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2016-10-04 15:49:48 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2016-10-06 21:35:52 +0200
commit44ca9f3d712e9b49681e9848db089a1c05c7ffff (patch)
treec4c5f0ea086d3859977d542bd337b6c3a60ef095 /components/script/task_source/dom_manipulation.rs
parent514819f37a12c79c0398863c2ef817c9a4337f56 (diff)
downloadservo-44ca9f3d712e9b49681e9848db089a1c05c7ffff.tar.gz
servo-44ca9f3d712e9b49681e9848db089a1c05c7ffff.zip
Make TaskSource::queue take a &GlobalScope
Diffstat (limited to 'components/script/task_source/dom_manipulation.rs')
-rw-r--r--components/script/task_source/dom_manipulation.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/task_source/dom_manipulation.rs b/components/script/task_source/dom_manipulation.rs
index 4f5384ae2ed..c5b4e4b5f73 100644
--- a/components/script/task_source/dom_manipulation.rs
+++ b/components/script/task_source/dom_manipulation.rs
@@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-use dom::bindings::global::GlobalRef;
+use dom::bindings::inheritance::Castable;
use dom::bindings::refcounted::Trusted;
use dom::event::{EventBubbles, EventCancelable, EventRunnable, SimpleEventRunnable};
use dom::eventtarget::EventTarget;
@@ -41,7 +41,7 @@ impl DOMManipulationTaskSource {
bubbles: bubbles,
cancelable: cancelable,
};
- let _ = self.queue(runnable, GlobalRef::Window(window));
+ let _ = self.queue(runnable, window.upcast());
}
pub fn queue_simple_event(&self, target: &EventTarget, name: Atom, window: &Window) {
@@ -50,7 +50,7 @@ impl DOMManipulationTaskSource {
target: target,
name: name,
};
- let _ = self.queue(runnable, GlobalRef::Window(window));
+ let _ = self.queue(runnable, window.upcast());
}
}