diff options
Diffstat (limited to 'components/script/dom/htmlvideoelement.rs')
-rw-r--r-- | components/script/dom/htmlvideoelement.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/components/script/dom/htmlvideoelement.rs b/components/script/dom/htmlvideoelement.rs index 365b9a38f20..bd4ca20a6f7 100644 --- a/components/script/dom/htmlvideoelement.rs +++ b/components/script/dom/htmlvideoelement.rs @@ -14,6 +14,7 @@ use dom::node::{Node, ElementNodeTypeId}; use servo_util::str::DOMString; #[deriving(Encodable)] +#[must_root] pub struct HTMLVideoElement { pub htmlmediaelement: HTMLMediaElement } @@ -31,6 +32,7 @@ impl HTMLVideoElement { } } + #[allow(unrooted_must_root)] pub fn new(localName: DOMString, document: &JSRef<Document>) -> Temporary<HTMLVideoElement> { let element = HTMLVideoElement::new_inherited(localName, document); Node::reflect_node(box element, document, HTMLVideoElementBinding::Wrap) |