diff options
Diffstat (limited to 'components/layout_traits/lib.rs')
-rw-r--r-- | components/layout_traits/lib.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/components/layout_traits/lib.rs b/components/layout_traits/lib.rs index 5466900b7bf..b6a93e98a25 100644 --- a/components/layout_traits/lib.rs +++ b/components/layout_traits/lib.rs @@ -30,7 +30,8 @@ use msg::constellation_msg::{PanicMsg, PipelineId, PipelineNamespaceId, Pipeline use net_traits::image_cache_thread::ImageCacheThread; use profile_traits::{mem, time}; use script_traits::LayoutMsg as ConstellationMsg; -use script_traits::{LayoutControlMsg, ConstellationControlMsg, OpaqueScriptLayoutChannel}; +use script_traits::{LayoutControlMsg, ConstellationControlMsg}; +use std::sync::mpsc::{Sender, Receiver}; use url::Url; use util::ipc::OptionalIpcSender; @@ -41,10 +42,11 @@ pub struct LayoutControlChan(pub IpcSender<LayoutControlMsg>); // A static method creating a layout thread // Here to remove the compositor -> layout dependency pub trait LayoutThreadFactory { + type Message; fn create(id: PipelineId, url: Url, is_iframe: bool, - chan: OpaqueScriptLayoutChannel, + chan: (Sender<Self::Message>, Receiver<Self::Message>), pipeline_port: IpcReceiver<LayoutControlMsg>, constellation_chan: IpcSender<ConstellationMsg>, panic_chan: IpcSender<PanicMsg>, |