mirror of
https://github.com/servo/servo.git
synced 2025-08-08 06:55:31 +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
|
@ -147,8 +147,9 @@ impl HTMLInputElement {
|
|||
pub fn new(localName: Atom,
|
||||
prefix: Option<DOMString>,
|
||||
document: &Document) -> Root<HTMLInputElement> {
|
||||
let element = HTMLInputElement::new_inherited(localName, prefix, document);
|
||||
Node::reflect_node(box element, document, HTMLInputElementBinding::Wrap)
|
||||
Node::reflect_node(box HTMLInputElement::new_inherited(localName, prefix, document),
|
||||
document,
|
||||
HTMLInputElementBinding::Wrap)
|
||||
}
|
||||
|
||||
pub fn type_(&self) -> Atom {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue