aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlhrelement.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/htmlhrelement.rs')
-rw-r--r--components/script/dom/htmlhrelement.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/script/dom/htmlhrelement.rs b/components/script/dom/htmlhrelement.rs
index a3127449fcc..432b56eb345 100644
--- a/components/script/dom/htmlhrelement.rs
+++ b/components/script/dom/htmlhrelement.rs
@@ -31,8 +31,9 @@ impl HTMLHRElement {
pub fn new(localName: Atom,
prefix: Option<DOMString>,
document: &Document) -> Root<HTMLHRElement> {
- let element = HTMLHRElement::new_inherited(localName, prefix, document);
- Node::reflect_node(box element, document, HTMLHRElementBinding::Wrap)
+ Node::reflect_node(box HTMLHRElement::new_inherited(localName, prefix, document),
+ document,
+ HTMLHRElementBinding::Wrap)
}
}