Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(712)

Unified Diff: Source/core/dom/ContainerNode.cpp

Issue 30663003: Merge 159007 "Notify nodes removal to Range/Selection after disp..." (Closed) Base URL: svn://svn.chromium.org/blink/branches/chromium/1650/
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/fast/dom/Range/range-created-during-remove-children-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/ContainerNode.cpp
===================================================================
--- Source/core/dom/ContainerNode.cpp (revision 160036)
+++ Source/core/dom/ContainerNode.cpp (working copy)
@@ -421,8 +421,6 @@
NodeVector children;
getChildNodes(container, children);
- container->document().nodeChildrenWillBeRemoved(container);
-
ChildListMutationScope mutation(container);
for (NodeVector::const_iterator it = children.begin(); it != children.end(); it++) {
Node* child = it->get();
@@ -565,6 +563,8 @@
document().removeFocusedElementOfSubtree(this, true);
}
+ document().nodeChildrenWillBeRemoved(this);
+
NodeVector removedChildren;
{
WidgetHierarchyUpdatesSuspensionScope suspendWidgetHierarchyUpdates;
« no previous file with comments | « LayoutTests/fast/dom/Range/range-created-during-remove-children-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698