mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Stop using int/uint in script.
This commit is contained in:
parent
74f8c0eeb7
commit
c2e81be8a5
12 changed files with 23 additions and 24 deletions
|
@ -51,7 +51,7 @@ impl<'a> PerformanceMethods for JSRef<'a, Performance> {
|
|||
// https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/HighResolutionTime/Overview.html#dom-performance-now
|
||||
fn Now(self) -> DOMHighResTimeStamp {
|
||||
let navStart = self.timing.root().r().NavigationStartPrecise();
|
||||
let now = (time::precise_time_ns() as f64 - navStart) * 1000000u as f64;
|
||||
let now = (time::precise_time_ns() as f64 - navStart) * 1000000 as f64;
|
||||
Finite::wrap(now)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue