mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
fix performance timing precision and navigation_start unit; add LoadEventStart and LoadEventEnd timing
This commit is contained in:
parent
ac062931e2
commit
7169a08a34
5 changed files with 43 additions and 20 deletions
|
@ -76,6 +76,16 @@ impl PerformanceTimingMethods for PerformanceTiming {
|
|||
fn DomComplete(&self) -> u64 {
|
||||
self.document.get_dom_complete()
|
||||
}
|
||||
|
||||
// https://w3c.github.io/navigation-timing/#widl-PerformanceTiming-loadEventStart
|
||||
fn LoadEventStart(&self) -> u64 {
|
||||
self.document.get_load_event_start()
|
||||
}
|
||||
|
||||
// https://w3c.github.io/navigation-timing/#widl-PerformanceTiming-loadEventEnd
|
||||
fn LoadEventEnd(&self) -> u64 {
|
||||
self.document.get_load_event_end()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue