Inline DOM element creation into box expressions in components/script/dom/

This commit is contained in:
Kuba Birecki 2016-07-14 08:44:22 +02:00
parent 3011d4b450
commit 85f4da18a6
66 changed files with 198 additions and 132 deletions

View file

@ -42,8 +42,9 @@ impl HTMLBodyElement {
#[allow(unrooted_must_root)]
pub fn new(localName: Atom, prefix: Option<DOMString>, document: &Document)
-> Root<HTMLBodyElement> {
let element = HTMLBodyElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLBodyElementBinding::Wrap)
Node::reflect_node(box HTMLBodyElement::new_inherited(localName, prefix, document),
document,
HTMLBodyElementBinding::Wrap)
}
/// https://drafts.csswg.org/cssom-view/#the-html-body-element