mirror of
https://github.com/servo/servo
synced 2026-05-01 03:47:53 +02:00
Inline DOM element creation into box expressions in components/script/dom/
This commit is contained in:
@@ -35,8 +35,9 @@ impl HTMLTableSectionElement {
|
||||
#[allow(unrooted_must_root)]
|
||||
pub fn new(localName: Atom, prefix: Option<DOMString>, document: &Document)
|
||||
-> Root<HTMLTableSectionElement> {
|
||||
let element = HTMLTableSectionElement::new_inherited(localName, prefix, document);
|
||||
Node::reflect_node(box element, document, HTMLTableSectionElementBinding::Wrap)
|
||||
Node::reflect_node(box HTMLTableSectionElement::new_inherited(localName, prefix, document),
|
||||
document,
|
||||
HTMLTableSectionElementBinding::Wrap)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user