diff options
author | Patrick Walton <pcwalton@mimiga.net> | 2015-10-27 19:52:19 -0700 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2015-11-12 14:30:25 -0500 |
commit | 1dc0d61c3cfbfbb856c970e9bb4e72f45837a457 (patch) | |
tree | b17e1447f358096168067901340d9958835f543b /components/script/dom/window.rs | |
parent | 4848e37e2e0da2f83b1d7f0d231d59047012ff95 (diff) | |
download | servo-1dc0d61c3cfbfbb856c970e9bb4e72f45837a457.tar.gz servo-1dc0d61c3cfbfbb856c970e9bb4e72f45837a457.zip |
script: Make timer events e10s-safe.
Closes #8235.
Diffstat (limited to 'components/script/dom/window.rs')
-rw-r--r-- | components/script/dom/window.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/components/script/dom/window.rs b/components/script/dom/window.rs index c7f0af1b234..a064a97b399 100644 --- a/components/script/dom/window.rs +++ b/components/script/dom/window.rs @@ -53,8 +53,8 @@ use page::Page; use profile_traits::mem; use rustc_serialize::base64::{FromBase64, STANDARD, ToBase64}; use script_task::{ScriptChan, ScriptPort, MainThreadScriptMsg, RunnableWrapper}; -use script_task::{SendableMainThreadScriptChan, MainThreadScriptChan, MainThreadTimerEventChan}; -use script_traits::{MsDuration, TimerEventChan, TimerEventId, TimerEventRequest, TimerSource}; +use script_task::{SendableMainThreadScriptChan, MainThreadScriptChan}; +use script_traits::{MsDuration, TimerEvent, TimerEventId, TimerEventRequest, TimerSource}; use selectors::parser::PseudoElement; use std::ascii::AsciiExt; use std::borrow::ToOwned; @@ -129,7 +129,7 @@ pub struct Window { session_storage: MutNullableHeap<JS<Storage>>, local_storage: MutNullableHeap<JS<Storage>>, #[ignore_heap_size_of = "channels are hard"] - scheduler_chan: Sender<TimerEventRequest>, + scheduler_chan: IpcSender<TimerEventRequest>, timers: ActiveTimers, next_worker_id: Cell<WorkerId>, @@ -1077,7 +1077,7 @@ impl Window { self.constellation_chan.clone() } - pub fn scheduler_chan(&self) -> Sender<TimerEventRequest> { + pub fn scheduler_chan(&self) -> IpcSender<TimerEventRequest> { self.scheduler_chan.clone() } @@ -1227,8 +1227,8 @@ impl Window { mem_profiler_chan: mem::ProfilerChan, devtools_chan: Option<IpcSender<ScriptToDevtoolsControlMsg>>, constellation_chan: ConstellationChan, - scheduler_chan: Sender<TimerEventRequest>, - timer_event_chan: MainThreadTimerEventChan, + scheduler_chan: IpcSender<TimerEventRequest>, + timer_event_chan: IpcSender<TimerEvent>, layout_chan: LayoutChan, id: PipelineId, parent_info: Option<(PipelineId, SubpageId)>, @@ -1261,7 +1261,7 @@ impl Window { session_storage: Default::default(), local_storage: Default::default(), scheduler_chan: scheduler_chan.clone(), - timers: ActiveTimers::new(box timer_event_chan, scheduler_chan), + timers: ActiveTimers::new(timer_event_chan, scheduler_chan), next_worker_id: Cell::new(WorkerId(0)), id: id, parent_info: parent_info, |