mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
cangc fixes in node.rs (#33984)
Signed-off-by: L Ashwin B <lashwinib@gmail.com>
This commit is contained in:
parent
3ed778150f
commit
bb4932026c
97 changed files with 1038 additions and 534 deletions
|
@ -447,7 +447,7 @@ impl Tokenizer {
|
|||
self.insert_node(node, Dom::from_ref(element.upcast()));
|
||||
},
|
||||
ParseOperation::CreateComment { text, node } => {
|
||||
let comment = Comment::new(DOMString::from(text), document, None);
|
||||
let comment = Comment::new(DOMString::from(text), document, None, can_gc);
|
||||
self.insert_node(node, Dom::from_ref(comment.upcast()));
|
||||
},
|
||||
ParseOperation::AppendBeforeSibling { sibling, node } => {
|
||||
|
@ -477,6 +477,7 @@ impl Tokenizer {
|
|||
Some(DOMString::from(public_id)),
|
||||
Some(DOMString::from(system_id)),
|
||||
document,
|
||||
can_gc,
|
||||
);
|
||||
|
||||
document
|
||||
|
@ -490,7 +491,12 @@ impl Tokenizer {
|
|||
.downcast::<Element>()
|
||||
.expect("tried to set attrs on non-Element in HTML parsing");
|
||||
for attr in attrs {
|
||||
elem.set_attribute_from_parser(attr.name, DOMString::from(attr.value), None);
|
||||
elem.set_attribute_from_parser(
|
||||
attr.name,
|
||||
DOMString::from(attr.value),
|
||||
None,
|
||||
can_gc,
|
||||
);
|
||||
}
|
||||
},
|
||||
ParseOperation::RemoveFromParent { target } => {
|
||||
|
@ -549,6 +555,7 @@ impl Tokenizer {
|
|||
DOMString::from(target),
|
||||
DOMString::from(data),
|
||||
document,
|
||||
can_gc,
|
||||
);
|
||||
self.insert_node(node, Dom::from_ref(pi.upcast()));
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue