aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlheadelement.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/htmlheadelement.rs')
-rw-r--r--components/script/dom/htmlheadelement.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/script/dom/htmlheadelement.rs b/components/script/dom/htmlheadelement.rs
index 995f380f442..cc88a4e4c87 100644
--- a/components/script/dom/htmlheadelement.rs
+++ b/components/script/dom/htmlheadelement.rs
@@ -34,8 +34,9 @@ impl HTMLHeadElement {
pub fn new(localName: Atom,
prefix: Option<DOMString>,
document: &Document) -> Root<HTMLHeadElement> {
- let element = HTMLHeadElement::new_inherited(localName, prefix, document);
- Node::reflect_node(box element, document, HTMLHeadElementBinding::Wrap)
+ Node::reflect_node(box HTMLHeadElement::new_inherited(localName, prefix, document),
+ document,
+ HTMLHeadElementBinding::Wrap)
}
/// https://html.spec.whatwg.org/multipage/#meta-referrer