mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Merge pull request #2831 from Ms2ger/perf-cleanup
Simplify the initialization of Performance; r=Manishearth
This commit is contained in:
commit
80a932ac3a
1 changed files with 1 additions and 2 deletions
|
@ -19,10 +19,9 @@ pub struct Performance {
|
|||
|
||||
impl Performance {
|
||||
fn new_inherited(window: &JSRef<Window>) -> Performance {
|
||||
let timing = JS::from_rooted(&PerformanceTiming::new(window).root().root_ref());
|
||||
Performance {
|
||||
reflector_: Reflector::new(),
|
||||
timing: timing,
|
||||
timing: JS::from_rooted(&PerformanceTiming::new(window)),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue