aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlimageelement.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/dom/htmlimageelement.rs
parent514819f37a12c79c0398863c2ef817c9a4337f56 (diff)
downloadservo-44ca9f3d712e9b49681e9848db089a1c05c7ffff.tar.gz
servo-44ca9f3d712e9b49681e9848db089a1c05c7ffff.zip
Make TaskSource::queue take a &GlobalScope
Diffstat (limited to 'components/script/dom/htmlimageelement.rs')
-rw-r--r--components/script/dom/htmlimageelement.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/components/script/dom/htmlimageelement.rs b/components/script/dom/htmlimageelement.rs
index 489a6821824..428cfb97343 100644
--- a/components/script/dom/htmlimageelement.rs
+++ b/components/script/dom/htmlimageelement.rs
@@ -9,7 +9,6 @@ use dom::bindings::codegen::Bindings::HTMLImageElementBinding;
use dom::bindings::codegen::Bindings::HTMLImageElementBinding::HTMLImageElementMethods;
use dom::bindings::codegen::Bindings::WindowBinding::WindowMethods;
use dom::bindings::error::Fallible;
-use dom::bindings::global::GlobalRef;
use dom::bindings::inheritance::Castable;
use dom::bindings::js::{LayoutJS, Root};
use dom::bindings::refcounted::Trusted;
@@ -192,7 +191,7 @@ impl HTMLImageElement {
src: src.into(),
};
let task = window.dom_manipulation_task_source();
- let _ = task.queue(runnable, GlobalRef::Window(window));
+ let _ = task.queue(runnable, window.upcast());
}
}
}