diff options
Diffstat (limited to 'components/script/dom/htmlparagraphelement.rs')
-rw-r--r-- | components/script/dom/htmlparagraphelement.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/components/script/dom/htmlparagraphelement.rs b/components/script/dom/htmlparagraphelement.rs index fc4b342b633..5b913da8801 100644 --- a/components/script/dom/htmlparagraphelement.rs +++ b/components/script/dom/htmlparagraphelement.rs @@ -29,7 +29,8 @@ impl HTMLParagraphElement { pub fn new(localName: Atom, prefix: Option<DOMString>, document: &Document) -> Root<HTMLParagraphElement> { - let element = HTMLParagraphElement::new_inherited(localName, prefix, document); - Node::reflect_node(box element, document, HTMLParagraphElementBinding::Wrap) + Node::reflect_node(box HTMLParagraphElement::new_inherited(localName, prefix, document), + document, + HTMLParagraphElementBinding::Wrap) } } |