aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_traits/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/layout_traits/lib.rs')
-rw-r--r--components/layout_traits/lib.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/layout_traits/lib.rs b/components/layout_traits/lib.rs
index 361ba3c2654..d75817911a7 100644
--- a/components/layout_traits/lib.rs
+++ b/components/layout_traits/lib.rs
@@ -22,7 +22,7 @@ extern crate util;
// that these modules won't have to depend on layout.
use gfx::font_cache_task::FontCacheTask;
-use gfx::paint_task::PaintChan;
+use gfx::paint_task::LayoutToPaintMsg;
use ipc_channel::ipc::{IpcReceiver, IpcSender};
use msg::constellation_msg::{ConstellationChan, Failure, PipelineId};
use profile_traits::mem;
@@ -31,6 +31,7 @@ use net_traits::image_cache_task::ImageCacheTask;
use script_traits::{LayoutControlMsg, ScriptControlChan, OpaqueScriptLayoutChannel};
use std::sync::mpsc::Sender;
use url::Url;
+use util::ipc::OptionalIpcSender;
/// A channel wrapper for constellation messages
#[derive(Clone, Deserialize, Serialize)]
@@ -49,7 +50,7 @@ pub trait LayoutTaskFactory {
constellation_chan: ConstellationChan,
failure_msg: Failure,
script_chan: ScriptControlChan,
- paint_chan: PaintChan,
+ layout_to_paint_chan: OptionalIpcSender<LayoutToPaintMsg>,
image_cache_task: ImageCacheTask,
font_cache_task: FontCacheTask,
time_profiler_chan: time::ProfilerChan,