mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +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
|
@ -48,8 +48,9 @@ impl HTMLTableElement {
|
|||
#[allow(unrooted_must_root)]
|
||||
pub fn new(localName: Atom, prefix: Option<DOMString>, document: &Document)
|
||||
-> Root<HTMLTableElement> {
|
||||
let element = HTMLTableElement::new_inherited(localName, prefix, document);
|
||||
Node::reflect_node(box element, document, HTMLTableElementBinding::Wrap)
|
||||
Node::reflect_node(box HTMLTableElement::new_inherited(localName, prefix, document),
|
||||
document,
|
||||
HTMLTableElementBinding::Wrap)
|
||||
}
|
||||
|
||||
pub fn get_border(&self) -> Option<u32> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue