diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2014-09-17 18:17:19 +0530 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2014-09-17 18:17:19 +0530 |
commit | 11ba79894a13ddaee4bfcdd64d23fd4b54a041f3 (patch) | |
tree | 5eac047b9fdc394ff30ce52a6dd888f164c6b629 /components/script/dom/performance.rs | |
parent | aa935c7b027bf00bf1f6756b0f5e1f4d0866c964 (diff) | |
parent | f5087e149004e0080a61a2a31d76a5c52ee357e1 (diff) | |
download | servo-11ba79894a13ddaee4bfcdd64d23fd4b54a041f3.tar.gz servo-11ba79894a13ddaee4bfcdd64d23fd4b54a041f3.zip |
Merge pull request #3374 from Manishearth/lint_unrooted_jsmanaged
Add lint for ensuring proper rooting of JS<T>; r=jdm
Diffstat (limited to 'components/script/dom/performance.rs')
-rw-r--r-- | components/script/dom/performance.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/components/script/dom/performance.rs b/components/script/dom/performance.rs index 82b931b0c2e..da112ff27fe 100644 --- a/components/script/dom/performance.rs +++ b/components/script/dom/performance.rs @@ -14,6 +14,7 @@ use time; pub type DOMHighResTimeStamp = f64; #[deriving(Encodable)] +#[must_root] pub struct Performance { reflector_: Reflector, timing: JS<PerformanceTiming>, @@ -28,8 +29,8 @@ impl Performance { } pub fn new(window: &JSRef<Window>) -> Temporary<Performance> { - let performance = Performance::new_inherited(window); - reflect_dom_object(box performance, &Window(*window), + reflect_dom_object(box Performance::new_inherited(window), + &Window(*window), PerformanceBinding::Wrap) } } |