mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Update node::remove comments to reflect standard
This commit is contained in:
parent
80e55c7ce4
commit
983e76af87
1 changed files with 7 additions and 3 deletions
|
@ -1551,12 +1551,16 @@ impl Node {
|
|||
Some(index)
|
||||
}
|
||||
};
|
||||
// Step 6.
|
||||
// Step 6. pre-removing steps for node iterators
|
||||
// Step 7.
|
||||
let old_previous_sibling = node.GetPreviousSibling();
|
||||
// Steps 7-8: mutation observers.
|
||||
// Step 9.
|
||||
// Step 8.
|
||||
let old_next_sibling = node.GetNextSibling();
|
||||
// Step 9.
|
||||
parent.remove_child(node, cached_index);
|
||||
// Step 10. removing steps (https://dom.spec.whatwg.org/#concept-node-remove-ext)
|
||||
// Step 11. transient registered observers
|
||||
// Step 12.
|
||||
if let SuppressObserver::Unsuppressed = suppress_observers {
|
||||
vtable_for(&parent).children_changed(
|
||||
&ChildrenMutation::replace(old_previous_sibling.r(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue