mirror of
https://github.com/servo/servo.git
synced 2025-08-08 06:55:31 +01:00
changed f64 to u64 for navigation start timing until it had to be float
This commit is contained in:
parent
b23131abf1
commit
0a09ee5cd8
13 changed files with 66 additions and 66 deletions
|
@ -17,7 +17,7 @@ pub struct PerformancePaintTiming {
|
|||
}
|
||||
|
||||
impl PerformancePaintTiming {
|
||||
fn new_inherited(metric_type: ProgressiveWebMetricType, start_time: f64) -> PerformancePaintTiming {
|
||||
fn new_inherited(metric_type: ProgressiveWebMetricType, start_time: u64) -> PerformancePaintTiming {
|
||||
let name = match metric_type {
|
||||
ProgressiveWebMetricType::FirstPaint => DOMString::from("first-paint"),
|
||||
ProgressiveWebMetricType::FirstContentfulPaint => DOMString::from("first-contentful-paint"),
|
||||
|
@ -26,7 +26,7 @@ impl PerformancePaintTiming {
|
|||
PerformancePaintTiming {
|
||||
entry: PerformanceEntry::new_inherited(name,
|
||||
DOMString::from("paint"),
|
||||
start_time,
|
||||
start_time as f64,
|
||||
0.)
|
||||
}
|
||||
}
|
||||
|
@ -34,7 +34,7 @@ impl PerformancePaintTiming {
|
|||
#[allow(unrooted_must_root)]
|
||||
pub fn new(global: &GlobalScope,
|
||||
metric_type: ProgressiveWebMetricType,
|
||||
start_time: f64) -> DomRoot<PerformancePaintTiming> {
|
||||
start_time: u64) -> DomRoot<PerformancePaintTiming> {
|
||||
let entry = PerformancePaintTiming::new_inherited(metric_type, start_time);
|
||||
reflect_dom_object(Box::new(entry), global, PerformancePaintTimingBinding::Wrap)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue