diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2017-09-25 23:56:32 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2017-09-26 09:48:55 +0200 |
commit | 7be32fb2371a14ba61b008a37e79761f66c073c7 (patch) | |
tree | f6ff7b73173ce6e39351199d7a5e67386c73659e /components/script/dom/performance.rs | |
parent | 0e3c54c1911ba2c3bf305ee04f04fcd9bf2fc2fe (diff) | |
download | servo-7be32fb2371a14ba61b008a37e79761f66c073c7.tar.gz servo-7be32fb2371a14ba61b008a37e79761f66c073c7.zip |
Rename JS<T> to Dom<T>
Diffstat (limited to 'components/script/dom/performance.rs')
-rw-r--r-- | components/script/dom/performance.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/performance.rs b/components/script/dom/performance.rs index 0213c299907..b0fbae9b844 100644 --- a/components/script/dom/performance.rs +++ b/components/script/dom/performance.rs @@ -10,7 +10,7 @@ use dom::bindings::error::{Error, Fallible}; use dom::bindings::inheritance::Castable; use dom::bindings::num::Finite; use dom::bindings::reflector::{DomObject, Reflector, reflect_dom_object}; -use dom::bindings::root::{JS, Root}; +use dom::bindings::root::{Dom, Root}; use dom::bindings::str::DOMString; use dom::globalscope::GlobalScope; use dom::performanceentry::PerformanceEntry; @@ -110,7 +110,7 @@ struct PerformanceObserver { #[dom_struct] pub struct Performance { reflector_: Reflector, - timing: Option<JS<PerformanceTiming>>, + timing: Option<Dom<PerformanceTiming>>, entries: DOMRefCell<PerformanceEntryList>, observers: DOMRefCell<Vec<PerformanceObserver>>, pending_notification_observers_task: Cell<bool>, @@ -124,7 +124,7 @@ impl Performance { Performance { reflector_: Reflector::new(), timing: if global.is::<Window>() { - Some(JS::from_ref(&*PerformanceTiming::new(global.as_window(), + Some(Dom::from_ref(&*PerformanceTiming::new(global.as_window(), navigation_start, navigation_start_precise))) } else { |