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