aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/timers.rs
diff options
context:
space:
mode:
authorbors-servo <metajack+bors@gmail.com>2014-12-17 18:45:49 -0700
committerbors-servo <metajack+bors@gmail.com>2014-12-17 18:45:49 -0700
commitfbf42c951b2f53d91e2f32f8035484a07ea83493 (patch)
tree1d7bfb30cbddebba633fe1f2c8844cf4133aabc1 /components/script/timers.rs
parentb8900782b0fcb409f37189bdc08eb7f8b3564a5f (diff)
parent1a9be88a1d1f9138287f5b1ee04300b7e1bd7025 (diff)
downloadservo-fbf42c951b2f53d91e2f32f8035484a07ea83493.tar.gz
servo-fbf42c951b2f53d91e2f32f8035484a07ea83493.zip
auto merge of #4405 : servo/servo/rustup_20141124, r=jdm
Diffstat (limited to 'components/script/timers.rs')
-rw-r--r--components/script/timers.rs14
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;