aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_task.rs
diff options
context:
space:
mode:
authorKeegan McAllister <kmcallister@mozilla.com>2014-09-16 13:00:18 -0700
committerKeegan McAllister <kmcallister@mozilla.com>2014-09-20 13:00:06 -0700
commita640a7c5c34f914d3c8515f9b89ae78919af4913 (patch)
tree9677c1626b445a50bfedfbe82fe426578c64996d /components/script/script_task.rs
parent8a7eefefd52f7e202069d6a58853d8f31e2c4113 (diff)
downloadservo-a640a7c5c34f914d3c8515f9b89ae78919af4913.tar.gz
servo-a640a7c5c34f914d3c8515f9b89ae78919af4913.zip
Upgrade to rustc 0.12.0-pre (4d2af3861 2014-09-17 15:51:11 +0000)
Diffstat (limited to 'components/script/script_task.rs')
-rw-r--r--components/script/script_task.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/components/script/script_task.rs b/components/script/script_task.rs
index c7404920690..878d6eab5c0 100644
--- a/components/script/script_task.rs
+++ b/components/script/script_task.rs
@@ -163,7 +163,7 @@ pub struct ScriptTask {
/// For communicating load url messages to the constellation
constellation_chan: ConstellationChan,
/// A handle to the compositor for communicating ready state messages.
- compositor: Box<ScriptListener>,
+ compositor: Box<ScriptListener+'static>,
/// For providing instructions to an optional devtools server.
devtools_chan: Option<DevtoolsControlChan>,
@@ -243,7 +243,7 @@ impl ScriptTaskFactory for ScriptTask {
box pair.sender() as Box<Any+Send>
}
- fn create<C:ScriptListener + Send>(
+ fn create<C:ScriptListener + Send + 'static>(
_phantom: Option<&mut ScriptTask>,
id: PipelineId,
compositor: Box<C>,
@@ -284,7 +284,7 @@ impl ScriptTaskFactory for ScriptTask {
impl ScriptTask {
/// Creates a new script task.
pub fn new(id: PipelineId,
- compositor: Box<ScriptListener>,
+ compositor: Box<ScriptListener+'static>,
layout_chan: LayoutChan,
port: Receiver<ScriptMsg>,
chan: ScriptChan,
@@ -638,7 +638,7 @@ impl ScriptTask {
if page.pending_reflows.get() > 0 {
page.pending_reflows.set(0);
page.damage(MatchSelectorsDocumentDamage);
- page.reflow(ReflowForDisplay, self.control_chan.clone(), self.compositor);
+ page.reflow(ReflowForDisplay, self.control_chan.clone(), &*self.compositor);
}
}
@@ -718,7 +718,7 @@ impl ScriptTask {
*page.mut_url() = Some((loaded.clone(), false));
if needs_reflow {
page.damage(ContentChangedDocumentDamage);
- page.reflow(ReflowForDisplay, self.control_chan.clone(), self.compositor);
+ page.reflow(ReflowForDisplay, self.control_chan.clone(), &*self.compositor);
}
return;
},
@@ -879,7 +879,7 @@ impl ScriptTask {
let frame = page.frame();
if frame.is_some() {
page.damage(ReflowDocumentDamage);
- page.reflow(ReflowForDisplay, self.control_chan.clone(), self.compositor)
+ page.reflow(ReflowForDisplay, self.control_chan.clone(), &*self.compositor)
}
let mut fragment_node = page.fragment_node.get();
@@ -919,7 +919,7 @@ impl ScriptTask {
page.pending_reflows.set(page.pending_reflows.get() + 1);
} else {
page.damage(MatchSelectorsDocumentDamage);
- page.reflow(ReflowForDisplay, self.control_chan.clone(), self.compositor)
+ page.reflow(ReflowForDisplay, self.control_chan.clone(), &*self.compositor)
}
}
}
@@ -1018,7 +1018,7 @@ impl ScriptTask {
if target_compare {
if mouse_over_targets.is_some() {
page.damage(MatchSelectorsDocumentDamage);
- page.reflow(ReflowForDisplay, self.control_chan.clone(), self.compositor);
+ page.reflow(ReflowForDisplay, self.control_chan.clone(), &*self.compositor);
}
*mouse_over_targets = Some(target_list);
}