diff options
Diffstat (limited to 'components/script/dom/performance.rs')
-rw-r--r-- | components/script/dom/performance.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/performance.rs b/components/script/dom/performance.rs index 7aafb604a9a..1916e86db4c 100644 --- a/components/script/dom/performance.rs +++ b/components/script/dom/performance.rs @@ -36,11 +36,11 @@ impl Performance { } impl<'a> PerformanceMethods for JSRef<'a, Performance> { - fn Timing(&self) -> Temporary<PerformanceTiming> { + fn Timing(self) -> Temporary<PerformanceTiming> { Temporary::new(self.timing.clone()) } - fn Now(&self) -> DOMHighResTimeStamp { + fn Now(self) -> DOMHighResTimeStamp { let navStart = self.timing.root().NavigationStartPrecise() as f64; (time::precise_time_s() - navStart) as DOMHighResTimeStamp } |