Merge pull request #2831 from Ms2ger/perf-cleanup

Simplify the initialization of Performance; r=Manishearth
This commit is contained in:
Ms2ger 2014-07-14 18:22:20 +02:00
commit 80a932ac3a

View file

@ -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)),
}
}