mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Most of the code refactoring needed to be done is done with this commit.
This commit is contained in:
parent
dbec9d8454
commit
883902bd97
86 changed files with 469 additions and 469 deletions
|
@ -14,20 +14,20 @@ use dom::window::Window;
|
|||
#[dom_struct]
|
||||
pub struct PerformanceTiming {
|
||||
reflector_: Reflector,
|
||||
navigationStart: u64,
|
||||
navigationStartPrecise: f64,
|
||||
navigation_start: u64,
|
||||
navigation_start_precise: f64,
|
||||
document: JS<Document>,
|
||||
}
|
||||
|
||||
impl PerformanceTiming {
|
||||
fn new_inherited(navStart: u64,
|
||||
navStartPrecise: f64,
|
||||
fn new_inherited(nav_start: u64,
|
||||
nav_start_precise: f64,
|
||||
document: &Document)
|
||||
-> PerformanceTiming {
|
||||
PerformanceTiming {
|
||||
reflector_: Reflector::new(),
|
||||
navigationStart: navStart,
|
||||
navigationStartPrecise: navStartPrecise,
|
||||
navigation_start: nav_start,
|
||||
navigation_start_precise: nav_start_precise,
|
||||
document: JS::from_ref(document),
|
||||
}
|
||||
}
|
||||
|
@ -48,7 +48,7 @@ impl PerformanceTiming {
|
|||
impl PerformanceTimingMethods for PerformanceTiming {
|
||||
// https://w3c.github.io/navigation-timing/#widl-PerformanceTiming-navigationStart
|
||||
fn NavigationStart(&self) -> u64 {
|
||||
self.navigationStart
|
||||
self.navigation_start
|
||||
}
|
||||
|
||||
// https://w3c.github.io/navigation-timing/#widl-PerformanceTiming-domLoading
|
||||
|
@ -89,7 +89,7 @@ impl PerformanceTimingMethods for PerformanceTiming {
|
|||
|
||||
|
||||
impl PerformanceTiming {
|
||||
pub fn NavigationStartPrecise(&self) -> f64 {
|
||||
self.navigationStartPrecise
|
||||
pub fn navigation_start_precise(&self) -> f64 {
|
||||
self.navigation_start_precise
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue