aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlmediaelement.rs
diff options
context:
space:
mode:
authorConnor Brewster <connor.brewster@eagles.oc.edu>2016-07-13 11:10:13 -0600
committerConnor Brewster <connor.brewster@eagles.oc.edu>2016-07-13 11:10:23 -0600
commitad30275d04d9d814da86f985d252f2b78fccfcd0 (patch)
treecde94d268b32a2b5ff9f51f93c062829c5b97bd8 /components/script/dom/htmlmediaelement.rs
parent5f7324a9a5fbc5ecf8a348a5e9e238aacfd6f3d9 (diff)
downloadservo-ad30275d04d9d814da86f985d252f2b78fccfcd0.tar.gz
servo-ad30275d04d9d814da86f985d252f2b78fccfcd0.zip
Move boxing to runnable initialization
Diffstat (limited to 'components/script/dom/htmlmediaelement.rs')
-rw-r--r--components/script/dom/htmlmediaelement.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/htmlmediaelement.rs b/components/script/dom/htmlmediaelement.rs
index 16c41811384..b95244f02bf 100644
--- a/components/script/dom/htmlmediaelement.rs
+++ b/components/script/dom/htmlmediaelement.rs
@@ -237,7 +237,7 @@ impl HTMLMediaElement {
}
}
- let task = Task {
+ let task = box Task {
elem: Trusted::new(self),
};
let win = window_from_node(self);
@@ -261,7 +261,7 @@ impl HTMLMediaElement {
}
}
- let task = Task {
+ let task = box Task {
elem: Trusted::new(self),
};
let win = window_from_node(self);
@@ -270,7 +270,7 @@ impl HTMLMediaElement {
fn queue_fire_simple_event(&self, type_: &'static str) {
let win = window_from_node(self);
- let task = FireSimpleEventTask::new(self, type_);
+ let task = box FireSimpleEventTask::new(self, type_);
let _ = win.dom_manipulation_task_source().queue(task, win.r());
}
@@ -498,7 +498,7 @@ impl HTMLMediaElement {
fn queue_dedicated_media_source_failure_steps(&self) {
let window = window_from_node(self);
- let _ = window.dom_manipulation_task_source().queue(DedicatedMediaSourceFailureTask::new(self), window.r());
+ let _ = window.dom_manipulation_task_source().queue(box DedicatedMediaSourceFailureTask::new(self), window.r());
}
// https://html.spec.whatwg.org/multipage/#dedicated-media-source-failure-steps