mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +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
|
@ -72,8 +72,9 @@ impl HTMLLinkElement {
|
|||
prefix: Option<DOMString>,
|
||||
document: &Document,
|
||||
creator: ElementCreator) -> Root<HTMLLinkElement> {
|
||||
let element = HTMLLinkElement::new_inherited(localName, prefix, document, creator);
|
||||
Node::reflect_node(box element, document, HTMLLinkElementBinding::Wrap)
|
||||
Node::reflect_node(box HTMLLinkElement::new_inherited(localName, prefix, document, creator),
|
||||
document,
|
||||
HTMLLinkElementBinding::Wrap)
|
||||
}
|
||||
|
||||
pub fn get_stylesheet(&self) -> Option<Arc<Stylesheet>> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue