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.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/htmlheadelement.rs b/components/script/dom/htmlheadelement.rs
index 1aaf0a799b5..5d9cb05eddf 100644
--- a/components/script/dom/htmlheadelement.rs
+++ b/components/script/dom/htmlheadelement.rs
@@ -34,7 +34,7 @@ impl HTMLHeadElement {
pub fn new(local_name: LocalName,
prefix: Option<Prefix>,
document: &Document) -> DomRoot<HTMLHeadElement> {
- Node::reflect_node(box HTMLHeadElement::new_inherited(local_name, prefix, document),
+ Node::reflect_node(Box::new(HTMLHeadElement::new_inherited(local_name, prefix, document)),
document,
HTMLHeadElementBinding::Wrap)
}