mirror of
https://github.com/servo/servo.git
synced 2025-07-22 14:53:49 +01:00
Do not root Performance::timing
This commit is contained in:
parent
17cd4202e7
commit
b0d1ccdf5f
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ impl PerformanceMethods for 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 navStart = self.timing.NavigationStartPrecise();
|
||||
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