mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Replace unsafe uses of HandleValueArray. (#34588)
* Replace unsafe uses of HandleValueArray. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Fix clippy lint. Signed-off-by: Josh Matthews <josh@joshmatthews.net> --------- Signed-off-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
parent
2328145c25
commit
a85241e635
11 changed files with 33 additions and 106 deletions
|
@ -2139,7 +2139,7 @@ impl Node {
|
|||
Node::adopt(node, &parent.owner_doc());
|
||||
}
|
||||
// Step 2.
|
||||
rooted_vec!(let removed_nodes <- parent.children());
|
||||
rooted_vec!(let removed_nodes <- parent.children().map(|c| DomRoot::as_traced(&c)));
|
||||
// Step 3.
|
||||
rooted_vec!(let mut added_nodes);
|
||||
let added_nodes = if let Some(node) = node.as_ref() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue