mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Inline DOM element creation into box expressions in components/script/dom/
This commit is contained in:
parent
3011d4b450
commit
85f4da18a6
66 changed files with 198 additions and 132 deletions
|
@ -29,7 +29,8 @@ impl HTMLModElement {
|
|||
pub fn new(localName: Atom,
|
||||
prefix: Option<DOMString>,
|
||||
document: &Document) -> Root<HTMLModElement> {
|
||||
let element = HTMLModElement::new_inherited(localName, prefix, document);
|
||||
Node::reflect_node(box element, document, HTMLModElementBinding::Wrap)
|
||||
Node::reflect_node(box HTMLModElement::new_inherited(localName, prefix, document),
|
||||
document,
|
||||
HTMLModElementBinding::Wrap)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue