mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Fix a bug in Node::pre_insert.
It was accidentally broken in 3ce368fa28
.
This commit is contained in:
parent
53c04b33f0
commit
0b680dc9bd
3 changed files with 7731 additions and 5 deletions
|
@ -1626,11 +1626,14 @@ impl Node {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Step 7-8.
|
// Step 7-8.
|
||||||
|
let reference_child_root;
|
||||||
let reference_child = match child {
|
let reference_child = match child {
|
||||||
Some(child) if child == node => node.GetNextSibling(),
|
Some(child) if child == node => {
|
||||||
_ => None
|
reference_child_root = node.GetNextSibling();
|
||||||
|
reference_child_root.r()
|
||||||
|
},
|
||||||
|
_ => child
|
||||||
};
|
};
|
||||||
let reference_child = reference_child.r().or(child);
|
|
||||||
|
|
||||||
// Step 9.
|
// Step 9.
|
||||||
let document = document_from_node(parent);
|
let document = document_from_node(parent);
|
||||||
|
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue