aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlscriptelement.rs
diff options
context:
space:
mode:
authorConnor Brewster <connor.brewster@eagles.oc.edu>2016-07-11 22:59:53 -0600
committerConnor Brewster <connor.brewster@eagles.oc.edu>2016-07-13 09:59:51 -0600
commit5f7324a9a5fbc5ecf8a348a5e9e238aacfd6f3d9 (patch)
treebf0e8ffcff9acc0a8bbd342ecc16ba2acde2f78b /components/script/dom/htmlscriptelement.rs
parentafc0ccb48d03cfacec06b9c6d6be3626b46ff793 (diff)
downloadservo-5f7324a9a5fbc5ecf8a348a5e9e238aacfd6f3d9.tar.gz
servo-5f7324a9a5fbc5ecf8a348a5e9e238aacfd6f3d9.zip
Make all task source runnables cancellable
Implement all Runnable methods on CancellableRunnable to redirect to their inner runnable
Diffstat (limited to 'components/script/dom/htmlscriptelement.rs')
-rw-r--r--components/script/dom/htmlscriptelement.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/script/dom/htmlscriptelement.rs b/components/script/dom/htmlscriptelement.rs
index 2d10e5f43d8..5195b0e53a6 100644
--- a/components/script/dom/htmlscriptelement.rs
+++ b/components/script/dom/htmlscriptelement.rs
@@ -460,12 +460,13 @@ impl HTMLScriptElement {
if external {
self.dispatch_load_event();
} else {
- window.dom_manipulation_task_source().queue_simple_event(self.upcast(), atom!("load"));
+ window.dom_manipulation_task_source().queue_simple_event(self.upcast(), atom!("load"), window.r());
}
}
pub fn queue_error_event(&self) {
- window_from_node(self).dom_manipulation_task_source().queue_simple_event(self.upcast(), atom!("error"));
+ let window = window_from_node(self);
+ window.dom_manipulation_task_source().queue_simple_event(self.upcast(), atom!("error"), window.r());
}
pub fn dispatch_before_script_execute_event(&self) -> bool {