diff options
author | bors-servo <metajack+bors@gmail.com> | 2015-08-12 08:28:29 -0600 |
---|---|---|
committer | bors-servo <metajack+bors@gmail.com> | 2015-08-12 08:28:29 -0600 |
commit | 3ad49fc689ceb6067cd6dea1aa0d004321704b8e (patch) | |
tree | 1b474bd22e9b010b617a0d977ab189c88bfdf2ce /components/script/dom/window.rs | |
parent | 54300a9c73f7c8289604ab9a957419577e10c1ac (diff) | |
parent | 2cdc043fcf574b96204f32e9cc95b02dee270d01 (diff) | |
download | servo-3ad49fc689ceb6067cd6dea1aa0d004321704b8e.tar.gz servo-3ad49fc689ceb6067cd6dea1aa0d004321704b8e.zip |
Auto merge of #7171 - Ms2ger:ScriptControlChan, r=jdm
Remove ScriptControlChan.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7171)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/window.rs')
-rw-r--r-- | components/script/dom/window.rs | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/components/script/dom/window.rs b/components/script/dom/window.rs index 7bfdf4e46d4..3190e6081dc 100644 --- a/components/script/dom/window.rs +++ b/components/script/dom/window.rs @@ -36,7 +36,7 @@ use layout_interface::{ContentBoxResponse, ContentBoxesResponse, ResolvedStyleRe use page::Page; use script_task::{TimerSource, ScriptChan, ScriptPort, NonWorkerScriptChan}; use script_task::ScriptMsg; -use script_traits::ScriptControlChan; +use script_traits::ConstellationControlMsg; use timers::{IsInterval, TimerId, TimerManager, TimerCallback}; use webdriver_handlers::jsval_to_webdriver; @@ -77,7 +77,7 @@ use std::mem as std_mem; use std::rc::Rc; use std::sync::Arc; use std::sync::mpsc::TryRecvError::{Empty, Disconnected}; -use std::sync::mpsc::{channel, Receiver}; +use std::sync::mpsc::{channel, Receiver, Sender}; use time; /// Current state of the window object @@ -112,7 +112,7 @@ pub struct Window { #[ignore_heap_size_of = "trait objects are hard"] script_chan: Box<ScriptChan+Send>, #[ignore_heap_size_of = "channels are hard"] - control_chan: ScriptControlChan, + control_chan: Sender<ConstellationControlMsg>, console: MutNullableHeap<JS<Console>>, crypto: MutNullableHeap<JS<Crypto>>, navigator: MutNullableHeap<JS<Navigator>>, @@ -264,10 +264,6 @@ impl Window { (box NonWorkerScriptChan(tx), box rx) } - pub fn control_chan<'a>(&'a self) -> &'a ScriptControlChan { - &self.control_chan - } - pub fn image_cache_task<'a>(&'a self) -> &'a ImageCacheTask { &self.image_cache_task } @@ -1077,7 +1073,7 @@ impl Window { page: Rc<Page>, script_chan: Box<ScriptChan+Send>, image_cache_chan: ImageCacheChan, - control_chan: ScriptControlChan, + control_chan: Sender<ConstellationControlMsg>, compositor: ScriptListener, image_cache_task: ImageCacheTask, resource_task: Arc<ResourceTask>, |