aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlhtmlelement.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/htmlhtmlelement.rs')
-rw-r--r--components/script/dom/htmlhtmlelement.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/htmlhtmlelement.rs b/components/script/dom/htmlhtmlelement.rs
index b112e304c09..c5eb4e1fca5 100644
--- a/components/script/dom/htmlhtmlelement.rs
+++ b/components/script/dom/htmlhtmlelement.rs
@@ -26,7 +26,7 @@ impl HTMLHtmlElement {
pub fn new(localName: LocalName,
prefix: Option<Prefix>,
document: &Document) -> DomRoot<HTMLHtmlElement> {
- Node::reflect_node(box HTMLHtmlElement::new_inherited(localName, prefix, document),
+ Node::reflect_node(Box::new(HTMLHtmlElement::new_inherited(localName, prefix, document)),
document,
HTMLHtmlElementBinding::Wrap)
}