diff options
author | Matt McCoy <mattnenterprise@yahoo.com> | 2014-12-17 23:22:01 -0500 |
---|---|---|
committer | Matt McCoy <mattnenterprise@yahoo.com> | 2014-12-18 10:57:15 -0500 |
commit | e4b029623f913261785f5a1ecb244e8faeca12a2 (patch) | |
tree | 19d893cf56215d7a718ac33163cd89dc69effed6 /components/script | |
parent | eea49ee1d986c306a8eec32b64be9b10cb2278fc (diff) | |
download | servo-e4b029623f913261785f5a1ecb244e8faeca12a2.tar.gz servo-e4b029623f913261785f5a1ecb244e8faeca12a2.zip |
This fixes #4407. This removes all unnecessary clones when calling fire_timer.
Diffstat (limited to 'components/script')
-rw-r--r-- | components/script/dom/window.rs | 2 | ||||
-rw-r--r-- | components/script/dom/workerglobalscope.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/window.rs b/components/script/dom/window.rs index 8142b455f99..27e852a6aac 100644 --- a/components/script/dom/window.rs +++ b/components/script/dom/window.rs @@ -357,7 +357,7 @@ impl<'a> WindowHelpers for JSRef<'a, Window> { } fn handle_fire_timer(self, timer_id: TimerId) { - self.timers.fire_timer(timer_id, self.clone()); + self.timers.fire_timer(timer_id, self); self.flush_layout(ReflowForDisplay, NoQuery); } } diff --git a/components/script/dom/workerglobalscope.rs b/components/script/dom/workerglobalscope.rs index f1dcbd5adfd..7d1356f0e34 100644 --- a/components/script/dom/workerglobalscope.rs +++ b/components/script/dom/workerglobalscope.rs @@ -181,7 +181,7 @@ pub trait WorkerGlobalScopeHelpers { impl<'a> WorkerGlobalScopeHelpers for JSRef<'a, WorkerGlobalScope> { fn handle_fire_timer(self, timer_id: TimerId) { - self.timers.fire_timer(timer_id, self.clone()); + self.timers.fire_timer(timer_id, self); } } |