diff options
Diffstat (limited to 'components/script/dom/htmlbodyelement.rs')
-rw-r--r-- | components/script/dom/htmlbodyelement.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/components/script/dom/htmlbodyelement.rs b/components/script/dom/htmlbodyelement.rs index 79dbd1438e4..c8007c39ea8 100644 --- a/components/script/dom/htmlbodyelement.rs +++ b/components/script/dom/htmlbodyelement.rs @@ -42,8 +42,9 @@ impl HTMLBodyElement { #[allow(unrooted_must_root)] pub fn new(localName: Atom, prefix: Option<DOMString>, document: &Document) -> Root<HTMLBodyElement> { - let element = HTMLBodyElement::new_inherited(localName, prefix, document); - Node::reflect_node(box element, document, HTMLBodyElementBinding::Wrap) + Node::reflect_node(box HTMLBodyElement::new_inherited(localName, prefix, document), + document, + HTMLBodyElementBinding::Wrap) } /// https://drafts.csswg.org/cssom-view/#the-html-body-element |