diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2014-09-17 00:51:20 +0530 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2014-09-17 01:02:41 +0530 |
commit | 30014c3919f5ad30d491074dafbfdaad0fb0de92 (patch) | |
tree | 12c75bb55e42abff8cceaeaf6b3d28c497f45102 /components/script/dom/bindings/utils.rs | |
parent | f0b8391762f37a6e50dfb7a46b461fc8f9414d57 (diff) | |
download | servo-30014c3919f5ad30d491074dafbfdaad0fb0de92.tar.gz servo-30014c3919f5ad30d491074dafbfdaad0fb0de92.zip |
Make Reflector #[must_root], propagate to non-HTMLElements
Diffstat (limited to 'components/script/dom/bindings/utils.rs')
-rw-r--r-- | components/script/dom/bindings/utils.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/script/dom/bindings/utils.rs b/components/script/dom/bindings/utils.rs index ae9a19a3a29..0f6ab2098fe 100644 --- a/components/script/dom/bindings/utils.rs +++ b/components/script/dom/bindings/utils.rs @@ -455,8 +455,9 @@ pub fn reflect_dom_object<T: Reflectable> } /// A struct to store a reference to the reflector of a DOM object. -#[allow(raw_pointer_deriving)] +#[allow(raw_pointer_deriving, unrooted_must_root)] #[deriving(PartialEq)] +#[must_root] pub struct Reflector { object: Cell<*mut JSObject>, } |