aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/node.rs
diff options
context:
space:
mode:
authorJonathan Schuster <jonathan.p.schuster@gmail.com>2016-02-03 20:37:01 -0500
committerJonathan Schuster <jonathan.p.schuster@gmail.com>2016-02-13 13:40:49 -0500
commit983e76af87cbc1553eae59b485ba1d9568a6da56 (patch)
tree9e6f0785f38360f269d3612b5697f5d7b36918e4 /components/script/dom/node.rs
parent80e55c7ce42fae08c6517facab686913c0c4eef8 (diff)
downloadservo-983e76af87cbc1553eae59b485ba1d9568a6da56.tar.gz
servo-983e76af87cbc1553eae59b485ba1d9568a6da56.zip
Update node::remove comments to reflect standard
Diffstat (limited to 'components/script/dom/node.rs')
-rw-r--r--components/script/dom/node.rs10
1 files changed, 7 insertions, 3 deletions
diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs
index 5e02dc3d0e6..9340e716a5d 100644
--- a/components/script/dom/node.rs
+++ b/components/script/dom/node.rs
@@ -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(),