aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlareaelement.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/htmlareaelement.rs')
-rw-r--r--components/script/dom/htmlareaelement.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/script/dom/htmlareaelement.rs b/components/script/dom/htmlareaelement.rs
index 3de80a21802..c724b640da6 100644
--- a/components/script/dom/htmlareaelement.rs
+++ b/components/script/dom/htmlareaelement.rs
@@ -18,6 +18,7 @@ use servo_util::atom::Atom;
use servo_util::str::DOMString;
#[deriving(Encodable)]
+#[must_root]
pub struct HTMLAreaElement {
pub htmlelement: HTMLElement
}
@@ -35,6 +36,7 @@ impl HTMLAreaElement {
}
}
+ #[allow(unrooted_must_root)]
pub fn new(localName: DOMString, document: &JSRef<Document>) -> Temporary<HTMLAreaElement> {
let element = HTMLAreaElement::new_inherited(localName, document);
Node::reflect_node(box element, document, HTMLAreaElementBinding::Wrap)