aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlanchorelement.rs
diff options
context:
space:
mode:
authorKuba Birecki <kuba.birecki@crystalplanet.io>2016-07-14 08:44:22 +0200
committerKuba Birecki <kuba.birecki@crystalplanet.io>2016-07-14 08:44:22 +0200
commit85f4da18a6dfe8fc03dc7b4a03573ac37434d85b (patch)
treeba50f6b1ca31027eb3a5e0472eb5c762b2096b6e /components/script/dom/htmlanchorelement.rs
parent3011d4b450b107f87fab54f6c59245ac1478fa79 (diff)
downloadservo-85f4da18a6dfe8fc03dc7b4a03573ac37434d85b.tar.gz
servo-85f4da18a6dfe8fc03dc7b4a03573ac37434d85b.zip
Inline DOM element creation into box expressions in components/script/dom/
Diffstat (limited to 'components/script/dom/htmlanchorelement.rs')
-rw-r--r--components/script/dom/htmlanchorelement.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/script/dom/htmlanchorelement.rs b/components/script/dom/htmlanchorelement.rs
index 713aa0a92cb..e9df2b6c999 100644
--- a/components/script/dom/htmlanchorelement.rs
+++ b/components/script/dom/htmlanchorelement.rs
@@ -54,8 +54,9 @@ impl HTMLAnchorElement {
pub fn new(localName: Atom,
prefix: Option<DOMString>,
document: &Document) -> Root<HTMLAnchorElement> {
- let element = HTMLAnchorElement::new_inherited(localName, prefix, document);
- Node::reflect_node(box element, document, HTMLAnchorElementBinding::Wrap)
+ Node::reflect_node(box HTMLAnchorElement::new_inherited(localName, prefix, document),
+ document,
+ HTMLAnchorElementBinding::Wrap)
}
// https://html.spec.whatwg.org/multipage/#concept-hyperlink-url-set