mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
Avoid memmove in HTMLDivElement constructor.
This commit is contained in:
parent
da81464372
commit
d0e3e612ab
1 changed files with 3 additions and 2 deletions
|
@ -28,8 +28,9 @@ impl HTMLDivElement {
|
||||||
pub fn new(localName: Atom,
|
pub fn new(localName: Atom,
|
||||||
prefix: Option<DOMString>,
|
prefix: Option<DOMString>,
|
||||||
document: &Document) -> Root<HTMLDivElement> {
|
document: &Document) -> Root<HTMLDivElement> {
|
||||||
let element = HTMLDivElement::new_inherited(localName, prefix, document);
|
Node::reflect_node(box HTMLDivElement::new_inherited(localName, prefix, document),
|
||||||
Node::reflect_node(box element, document, HTMLDivElementBinding::Wrap)
|
document,
|
||||||
|
HTMLDivElementBinding::Wrap)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue