aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/performance.rs
diff options
context:
space:
mode:
authorTetsuharu OHZEKI <saneyuki.snyk@gmail.com>2014-05-28 12:44:46 +0900
committerTetsuharu OHZEKI <saneyuki.snyk@gmail.com>2014-05-30 03:54:23 +0900
commitaaa8c838d271d45980ab9e85a2f402b40dd8af05 (patch)
treea1b072bd50111ed4332ad28965ec4b4170696749 /src/components/script/dom/performance.rs
parent2215e2ca801359ad1bead7e9d986e610a25a94b9 (diff)
downloadservo-aaa8c838d271d45980ab9e85a2f402b40dd8af05.tar.gz
servo-aaa8c838d271d45980ab9e85a2f402b40dd8af05.zip
Use Cell/RefCell for interior mutability of NodeList, Performance, TestBinding, and ValidityState.
Diffstat (limited to 'src/components/script/dom/performance.rs')
-rw-r--r--src/components/script/dom/performance.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/script/dom/performance.rs b/src/components/script/dom/performance.rs
index 13910eb701d..fca1b6d4ebf 100644
--- a/src/components/script/dom/performance.rs
+++ b/src/components/script/dom/performance.rs
@@ -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,
}
}