mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Store a Sender<ConstellationControlMsg> in ScriptTask.
This commit is contained in:
parent
3b1b3fe0a0
commit
c05f0906d5
3 changed files with 7 additions and 7 deletions
|
@ -311,7 +311,7 @@ pub struct ScriptTask {
|
|||
chan: NonWorkerScriptChan,
|
||||
|
||||
/// A channel to hand out to tasks that need to respond to a message from the script task.
|
||||
control_chan: ScriptControlChan,
|
||||
control_chan: Sender<ConstellationControlMsg>,
|
||||
|
||||
/// The port on which the constellation and layout tasks can communicate with the
|
||||
/// script task.
|
||||
|
@ -405,7 +405,7 @@ impl ScriptTaskFactory for ScriptTask {
|
|||
parent_info: Option<(PipelineId, SubpageId)>,
|
||||
compositor: ScriptListener,
|
||||
layout_chan: &OpaqueScriptLayoutChannel,
|
||||
control_chan: ScriptControlChan,
|
||||
control_chan: Sender<ConstellationControlMsg>,
|
||||
control_port: Receiver<ConstellationControlMsg>,
|
||||
constellation_chan: ConstellationChan,
|
||||
failure_msg: Failure,
|
||||
|
@ -542,7 +542,7 @@ impl ScriptTask {
|
|||
pub fn new(compositor: ScriptListener,
|
||||
port: Receiver<ScriptMsg>,
|
||||
chan: NonWorkerScriptChan,
|
||||
control_chan: ScriptControlChan,
|
||||
control_chan: Sender<ConstellationControlMsg>,
|
||||
control_port: Receiver<ConstellationControlMsg>,
|
||||
constellation_chan: ConstellationChan,
|
||||
resource_task: Arc<ResourceTask>,
|
||||
|
@ -1053,7 +1053,7 @@ impl ScriptTask {
|
|||
constellation_chan: self.constellation_chan.clone(),
|
||||
failure: failure,
|
||||
paint_chan: paint_chan,
|
||||
script_chan: self.control_chan.0.clone(),
|
||||
script_chan: self.control_chan.clone(),
|
||||
image_cache_task: self.image_cache_task.clone(),
|
||||
layout_shutdown_chan: layout_shutdown_chan,
|
||||
};
|
||||
|
@ -1466,7 +1466,7 @@ impl ScriptTask {
|
|||
page.clone(),
|
||||
self.chan.clone(),
|
||||
self.image_cache_channel.clone(),
|
||||
self.control_chan.clone(),
|
||||
ScriptControlChan(self.control_chan.clone()),
|
||||
self.compositor.borrow_mut().dup(),
|
||||
self.image_cache_task.clone(),
|
||||
self.resource_task.clone(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue