mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Make the traits for the IDL interfaces take &self
This commit is contained in:
parent
856fda7f2e
commit
709d347872
99 changed files with 1192 additions and 1192 deletions
|
@ -43,14 +43,14 @@ impl Performance {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a> PerformanceMethods for &'a Performance {
|
||||
impl PerformanceMethods for Performance {
|
||||
// https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/NavigationTiming/Overview.html#performance-timing-attribute
|
||||
fn Timing(self) -> Root<PerformanceTiming> {
|
||||
fn Timing(&self) -> Root<PerformanceTiming> {
|
||||
self.timing.root()
|
||||
}
|
||||
|
||||
// https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/HighResolutionTime/Overview.html#dom-performance-now
|
||||
fn Now(self) -> DOMHighResTimeStamp {
|
||||
fn Now(&self) -> DOMHighResTimeStamp {
|
||||
let navStart = self.timing.root().r().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