mirror of
https://github.com/servo/servo.git
synced 2025-08-11 08:25:32 +01:00
Fix float conversion of paint timing metrics
This commit is contained in:
parent
462409ada5
commit
4d8660c918
3 changed files with 15 additions and 4 deletions
|
@ -9,6 +9,7 @@ use dom::bindings::str::DOMString;
|
|||
use dom::globalscope::GlobalScope;
|
||||
use dom::performanceentry::PerformanceEntry;
|
||||
use dom_struct::dom_struct;
|
||||
use metrics::ToMs;
|
||||
use script_traits::ProgressiveWebMetricType;
|
||||
|
||||
#[dom_struct]
|
||||
|
@ -26,7 +27,7 @@ impl PerformancePaintTiming {
|
|||
PerformancePaintTiming {
|
||||
entry: PerformanceEntry::new_inherited(name,
|
||||
DOMString::from("paint"),
|
||||
start_time as f64,
|
||||
start_time.to_ms(),
|
||||
0.)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue