mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +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
|
@ -42,8 +42,9 @@ impl HTMLStyleElement {
|
|||
pub fn new(localName: Atom,
|
||||
prefix: Option<DOMString>,
|
||||
document: &Document) -> Root<HTMLStyleElement> {
|
||||
let element = HTMLStyleElement::new_inherited(localName, prefix, document);
|
||||
Node::reflect_node(box element, document, HTMLStyleElementBinding::Wrap)
|
||||
Node::reflect_node(box HTMLStyleElement::new_inherited(localName, prefix, document),
|
||||
document,
|
||||
HTMLStyleElementBinding::Wrap)
|
||||
}
|
||||
|
||||
pub fn parse_own_css(&self) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue