aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlelement.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/htmlelement.rs')
-rw-r--r--components/script/dom/htmlelement.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/script/dom/htmlelement.rs b/components/script/dom/htmlelement.rs
index 87bf5d92ff4..e9d967514d7 100644
--- a/components/script/dom/htmlelement.rs
+++ b/components/script/dom/htmlelement.rs
@@ -63,8 +63,9 @@ impl HTMLElement {
#[allow(unrooted_must_root)]
pub fn new(localName: Atom, prefix: Option<DOMString>, document: &Document) -> Root<HTMLElement> {
- let element = HTMLElement::new_inherited(localName, prefix, document);
- Node::reflect_node(box element, document, HTMLElementBinding::Wrap)
+ Node::reflect_node(box HTMLElement::new_inherited(localName, prefix, document),
+ document,
+ HTMLElementBinding::Wrap)
}
fn is_body_or_frameset(&self) -> bool {