mirror of
https://github.com/servo/servo
synced 2026-05-05 06:32:13 +02:00
Inline DOM element creation into box expressions in components/script/dom/
This commit is contained in:
@@ -26,7 +26,8 @@ impl HTMLBRElement {
|
||||
pub fn new(localName: Atom,
|
||||
prefix: Option<DOMString>,
|
||||
document: &Document) -> Root<HTMLBRElement> {
|
||||
let element = HTMLBRElement::new_inherited(localName, prefix, document);
|
||||
Node::reflect_node(box element, document, HTMLBRElementBinding::Wrap)
|
||||
Node::reflect_node(box HTMLBRElement::new_inherited(localName, prefix, document),
|
||||
document,
|
||||
HTMLBRElementBinding::Wrap)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user