aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/testbinding.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2016-10-04 13:06:37 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2016-10-06 21:35:51 +0200
commit991801488c97fd74d814c6591064379400e06d1e (patch)
tree5e69e1c27800a3f7916b941ebfbad30b7cb59a1c /components/script/dom/testbinding.rs
parent5d8979237b4bd44ab336f1c54ce728a33218da38 (diff)
downloadservo-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.rs6
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)]