diff options
author | Tetsuharu OHZEKI <saneyuki.snyk@gmail.com> | 2014-12-19 02:37:20 +0900 |
---|---|---|
committer | Tetsuharu OHZEKI <saneyuki.snyk@gmail.com> | 2014-12-19 04:52:48 +0900 |
commit | a7bb436177d58798711403f0329b8bf84763f137 (patch) | |
tree | 5f22ccc13b133ca5a7d31eac75013ef68b5434d9 /components/script/timers.rs | |
parent | 824788649cd338c044d9396166af5b0f378d6685 (diff) | |
download | servo-a7bb436177d58798711403f0329b8bf84763f137.tar.gz servo-a7bb436177d58798711403f0329b8bf84763f137.zip |
script: Remove glob imports added in #4405
Diffstat (limited to 'components/script/timers.rs')
-rw-r--r-- | components/script/timers.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/components/script/timers.rs b/components/script/timers.rs index 1b642a85ca5..082ea626790 100644 --- a/components/script/timers.rs +++ b/components/script/timers.rs @@ -8,8 +8,7 @@ use dom::bindings::codegen::Bindings::FunctionBinding::Function; use dom::bindings::js::JSRef; use dom::bindings::utils::Reflectable; -use script_task::{ScriptChan, TimerSource}; -use script_task::ScriptMsg::FireTimerMsg; +use script_task::{ScriptChan, ScriptMsg, TimerSource}; use servo_util::task::spawn_named; @@ -107,7 +106,7 @@ impl TimerManager { let handle = self.next_timer_handle.get(); self.next_timer_handle.set(handle + 1); - // Spawn a new timer task; it will dispatch the FireTimerMsg + // Spawn a new timer task; it will dispatch the `ScriptMsg::FireTimer` // to the relevant script handler that will deal with it. let tm = Timer::new().unwrap(); let (cancel_chan, cancel_port) = channel(); @@ -138,7 +137,7 @@ impl TimerManager { if id == timeout_handle.id() { timeout_port.recv(); let ScriptChan(ref chan) = script_chan; - chan.send(FireTimerMsg(source, TimerId(handle))); + chan.send(ScriptMsg::FireTimer(source, TimerId(handle))); if is_interval == IsInterval::NonInterval { break; } |