diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2016-10-04 13:06:37 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2016-10-06 21:35:51 +0200 |
commit | 991801488c97fd74d814c6591064379400e06d1e (patch) | |
tree | 5e69e1c27800a3f7916b941ebfbad30b7cb59a1c /components/script/dom/testbinding.rs | |
parent | 5d8979237b4bd44ab336f1c54ce728a33218da38 (diff) | |
download | servo-991801488c97fd74d814c6591064379400e06d1e.tar.gz servo-991801488c97fd74d814c6591064379400e06d1e.zip |
Move timers to GlobalScope
Diffstat (limited to 'components/script/dom/testbinding.rs')
-rw-r--r-- | components/script/dom/testbinding.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/components/script/dom/testbinding.rs b/components/script/dom/testbinding.rs index 3f4d3dbcaf1..bc7c5643533 100644 --- a/components/script/dom/testbinding.rs +++ b/components/script/dom/testbinding.rs @@ -683,8 +683,10 @@ impl TestBindingMethods for TestBinding { promise: TrustedPromise::new(promise), value: value, }; - let _ = self.global().r().schedule_callback(OneshotTimerCallback::TestBindingCallback(cb), - MsDuration::new(delay)); + let _ = self.global_scope() + .schedule_callback( + OneshotTimerCallback::TestBindingCallback(cb), + MsDuration::new(delay)); } #[allow(unrooted_must_root)] |