diff options
author | Ms2ger <ms2ger@gmail.com> | 2014-12-17 10:42:52 +0100 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2014-12-17 15:19:45 -0500 |
commit | 466faac2a507c833b282e274a28f6ae533c628f9 (patch) | |
tree | 0022a66d52deec0081b8b721b56e2f15d7225f8e /components/script/timers.rs | |
parent | b8900782b0fcb409f37189bdc08eb7f8b3564a5f (diff) | |
download | servo-466faac2a507c833b282e274a28f6ae533c628f9.tar.gz servo-466faac2a507c833b282e274a28f6ae533c628f9.zip |
Update rustc to revision 3dcd2157403163789aaf21a9ab3c4d30a7c6494d.
Diffstat (limited to 'components/script/timers.rs')
-rw-r--r-- | components/script/timers.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/components/script/timers.rs b/components/script/timers.rs index 8d802731487..1b642a85ca5 100644 --- a/components/script/timers.rs +++ b/components/script/timers.rs @@ -3,13 +3,13 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ use dom::bindings::cell::DOMRefCell; -use dom::bindings::callback::ReportExceptions; +use dom::bindings::callback::ExceptionHandling::ReportExceptions; use dom::bindings::codegen::Bindings::FunctionBinding::Function; use dom::bindings::js::JSRef; use dom::bindings::utils::Reflectable; -use script_task::{FireTimerMsg, ScriptChan}; -use script_task::{TimerSource, FromWindow, FromWorker}; +use script_task::{ScriptChan, TimerSource}; +use script_task::ScriptMsg::FireTimerMsg; use servo_util::task::spawn_named; @@ -112,10 +112,10 @@ impl TimerManager { let tm = Timer::new().unwrap(); let (cancel_chan, cancel_port) = channel(); let spawn_name = match source { - FromWindow(_) if is_interval == IsInterval::Interval => "Window:SetInterval", - FromWorker if is_interval == IsInterval::Interval => "Worker:SetInterval", - FromWindow(_) => "Window:SetTimeout", - FromWorker => "Worker:SetTimeout", + TimerSource::FromWindow(_) if is_interval == IsInterval::Interval => "Window:SetInterval", + TimerSource::FromWorker if is_interval == IsInterval::Interval => "Worker:SetInterval", + TimerSource::FromWindow(_) => "Window:SetTimeout", + TimerSource::FromWorker => "Worker:SetTimeout", }; spawn_named(spawn_name, proc() { let mut tm = tm; |