Title: [110473] branches/chromium/1025/Source/WebCore/dom/ContainerNode.cpp
- Revision
- 110473
- Author
- [email protected]
- Date
- 2012-03-12 14:01:09 -0700 (Mon, 12 Mar 2012)
Log Message
Merge 110139
BUG=117226
Modified Paths
Diff
Modified: branches/chromium/1025/Source/WebCore/dom/ContainerNode.cpp (110472 => 110473)
--- branches/chromium/1025/Source/WebCore/dom/ContainerNode.cpp 2012-03-12 20:47:26 UTC (rev 110472)
+++ branches/chromium/1025/Source/WebCore/dom/ContainerNode.cpp 2012-03-12 21:01:09 UTC (rev 110473)
@@ -386,11 +386,14 @@
{
RefPtr<Node> protect(this);
- for (RefPtr<Node> child = firstChild(); child; child = child->nextSibling()) {
- if (child->parentNode() != this) // Check for child being removed from subtree while removing.
- break;
- child->willRemove();
+ NodeVector children;
+ collectNodes(this, children);
+ for (size_t i = 0; i < children.size(); ++i) {
+ if (children[i]->parentNode() != this) // Check for child being removed from subtree while removing.
+ continue;
+ children[i]->willRemove();
}
+
Node::willRemove();
}
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes