diff options
author | Ms2ger <Ms2ger@gmail.com> | 2016-05-19 16:53:52 +0200 |
---|---|---|
committer | Ms2ger <Ms2ger@gmail.com> | 2016-05-19 17:13:44 +0200 |
commit | cc2b2b50a74515700b6cae88c66e734312d1fdbb (patch) | |
tree | 832cd371fbbfb4dfa97a7ee0fddd0253c3bb7766 /components/script/layout_interface.rs | |
parent | 2572a7d2c5ba90cc78f6be10bb29c2e8fbc8f250 (diff) | |
download | servo-cc2b2b50a74515700b6cae88c66e734312d1fdbb.tar.gz servo-cc2b2b50a74515700b6cae88c66e734312d1fdbb.zip |
Remove ConstellationChan.
It's a pointless abstraction that propagates the obsolete chan terminology,
swaps the order in which the sender and receiver are returned, and hides a
source of panics.
Diffstat (limited to 'components/script/layout_interface.rs')
-rw-r--r-- | components/script/layout_interface.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/components/script/layout_interface.rs b/components/script/layout_interface.rs index 2a9598fcc8b..2a6e0b1d79a 100644 --- a/components/script/layout_interface.rs +++ b/components/script/layout_interface.rs @@ -12,8 +12,7 @@ use euclid::point::Point2D; use euclid::rect::Rect; use gfx_traits::{Epoch, LayerId}; use ipc_channel::ipc::{IpcReceiver, IpcSender}; -use msg::constellation_msg::{ConstellationChan, PanicMsg, PipelineId}; -use msg::constellation_msg::{WindowSizeData}; +use msg::constellation_msg::{PanicMsg, PipelineId, WindowSizeData}; use net_traits::image_cache_thread::ImageCacheThread; use profile_traits::mem::ReportsChan; use script_traits::{ConstellationControlMsg, LayoutControlMsg, LayoutMsg as ConstellationMsg}; @@ -262,8 +261,8 @@ pub struct NewLayoutThreadInfo { pub is_parent: bool, pub layout_pair: OpaqueScriptLayoutChannel, pub pipeline_port: IpcReceiver<LayoutControlMsg>, - pub constellation_chan: ConstellationChan<ConstellationMsg>, - pub panic_chan: ConstellationChan<PanicMsg>, + pub constellation_chan: IpcSender<ConstellationMsg>, + pub panic_chan: IpcSender<PanicMsg>, pub script_chan: IpcSender<ConstellationControlMsg>, pub image_cache_thread: ImageCacheThread, pub paint_chan: OptionalOpaqueIpcSender, |