aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/timers.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2016-10-05 11:06:25 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2016-10-06 21:36:41 +0200
commitd8e92bb271a9f9dd87bf77e38cd820d01f2f0ae4 (patch)
tree14676fcd23d30d1652023aa14969446f58b83922 /components/script/timers.rs
parentb6bbd41e11a8d73f884b7011905c05bd3efec3cd (diff)
downloadservo-d8e92bb271a9f9dd87bf77e38cd820d01f2f0ae4.tar.gz
servo-d8e92bb271a9f9dd87bf77e38cd820d01f2f0ae4.zip
Rename Reflectable::global_scope to global
Diffstat (limited to 'components/script/timers.rs')
-rw-r--r--components/script/timers.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/timers.rs b/components/script/timers.rs
index ddfd336cd4f..34ac02b6589 100644
--- a/components/script/timers.rs
+++ b/components/script/timers.rs
@@ -489,7 +489,7 @@ impl JsTimerTask {
// step 4.2
match *&self.callback {
InternalTimerCallback::StringTimerCallback(ref code_str) => {
- let global = this.global_scope();
+ let global = this.global();
let cx = global.get_cx();
rooted!(in(cx) let mut rval = UndefinedValue());
@@ -514,7 +514,7 @@ impl JsTimerTask {
// reschedule repeating timers when they were not canceled as part of step 4.2.
if self.is_interval == IsInterval::Interval &&
timers.active_timers.borrow().contains_key(&self.handle) {
- timers.initialize_and_schedule(&this.global_scope(), self);
+ timers.initialize_and_schedule(&this.global(), self);
}
}
}