mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Use Cell/RefCell for interior mutability of NodeList, Performance, TestBinding, and ValidityState.
This commit is contained in:
parent
2215e2ca80
commit
aaa8c838d2
3 changed files with 12 additions and 9 deletions
|
@ -7,7 +7,6 @@ use dom::bindings::js::{JS, JSRef, Temporary};
|
|||
use dom::bindings::utils::{Reflectable, Reflector, reflect_dom_object};
|
||||
use dom::performancetiming::{PerformanceTiming, PerformanceTimingMethods};
|
||||
use dom::window::Window;
|
||||
|
||||
use time;
|
||||
|
||||
pub type DOMHighResTimeStamp = f64;
|
||||
|
@ -20,9 +19,10 @@ pub struct Performance {
|
|||
|
||||
impl Performance {
|
||||
fn new_inherited(window: &JSRef<Window>) -> Performance {
|
||||
let timing = PerformanceTiming::new(window).root().root_ref().unrooted();
|
||||
Performance {
|
||||
reflector_: Reflector::new(),
|
||||
timing: PerformanceTiming::new(window).root().root_ref().unrooted(),
|
||||
timing: timing,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue