diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2015-11-13 05:19:48 +0530 |
---|---|---|
committer | bors-servo <lbergstrom+bors@mozilla.com> | 2015-11-13 05:19:48 +0530 |
commit | 9eaa8e7b1f2e462f62b73477c30183c836a18399 (patch) | |
tree | 53dd87db90ce2e7095da789c73bbf7ea93a10da1 /components/script/dom/bindings | |
parent | 1720595a85ff0a593994fed1d086288746c56aa3 (diff) | |
parent | 1dc0d61c3cfbfbb856c970e9bb4e72f45837a457 (diff) | |
download | servo-9eaa8e7b1f2e462f62b73477c30183c836a18399.tar.gz servo-9eaa8e7b1f2e462f62b73477c30183c836a18399.zip |
Auto merge of #8492 - jdm:e10s-timer-events, r=jdm
script: Make timer events e10s-safe.
Closes #8235.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8492)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/bindings')
-rw-r--r-- | components/script/dom/bindings/global.rs | 3 | ||||
-rw-r--r-- | components/script/dom/bindings/trace.rs | 9 |
2 files changed, 2 insertions, 10 deletions
diff --git a/components/script/dom/bindings/global.rs b/components/script/dom/bindings/global.rs index c2d1c07c3ae..f3ae21e3212 100644 --- a/components/script/dom/bindings/global.rs +++ b/components/script/dom/bindings/global.rs @@ -23,7 +23,6 @@ use net_traits::ResourceTask; use profile_traits::mem; use script_task::{CommonScriptMsg, ScriptChan, ScriptPort, ScriptTask}; use script_traits::{MsDuration, TimerEventRequest}; -use std::sync::mpsc::Sender; use timers::{ScheduledCallback, TimerHandle}; use url::Url; use util::mem::HeapSizeOf; @@ -100,7 +99,7 @@ impl<'a> GlobalRef<'a> { } /// Get the scheduler channel to request timer events. - pub fn scheduler_chan(&self) -> Sender<TimerEventRequest> { + pub fn scheduler_chan(&self) -> IpcSender<TimerEventRequest> { match *self { GlobalRef::Window(window) => window.scheduler_chan(), GlobalRef::Worker(worker) => worker.scheduler_chan(), diff --git a/components/script/dom/bindings/trace.rs b/components/script/dom/bindings/trace.rs index cd8fab7e56f..e05670b9a6d 100644 --- a/components/script/dom/bindings/trace.rs +++ b/components/script/dom/bindings/trace.rs @@ -62,7 +62,7 @@ use net_traits::storage_task::StorageType; use profile_traits::mem::ProfilerChan as MemProfilerChan; use profile_traits::time::ProfilerChan as TimeProfilerChan; use script_task::ScriptChan; -use script_traits::{TimerEventChan, TimerEventId, TimerSource, UntrustedNodeAddress}; +use script_traits::{TimerEventId, TimerSource, UntrustedNodeAddress}; use selectors::parser::PseudoElement; use selectors::states::*; use serde::{Deserialize, Serialize}; @@ -302,13 +302,6 @@ impl JSTraceable for Box<ScriptChan + Send> { } } -impl JSTraceable for Box<TimerEventChan + Send> { - #[inline] - fn trace(&self, _trc: *mut JSTracer) { - // Do nothing - } -} - impl JSTraceable for Box<FnBox(f64, )> { #[inline] fn trace(&self, _trc: *mut JSTracer) { |