Index: third_party/WebKit/Source/core/dom/ContainerNode.cpp |
diff --git a/third_party/WebKit/Source/core/dom/ContainerNode.cpp b/third_party/WebKit/Source/core/dom/ContainerNode.cpp |
index 1e2fe05deb8fd395510513ca71914d9918336852..23b1ef678c06389d3f6f841e01d88380ae559342 100644 |
--- a/third_party/WebKit/Source/core/dom/ContainerNode.cpp |
+++ b/third_party/WebKit/Source/core/dom/ContainerNode.cpp |
@@ -586,6 +586,7 @@ PassRefPtrWillBeRawPtr<Node> ContainerNode::removeChild(PassRefPtrWillBeRawPtr<N |
{ |
HTMLFrameOwnerElement::UpdateSuspendScope suspendWidgetHierarchyUpdates; |
+ DocumentOrderedMap::RemoveScope treeRemoveScope; |
Node* prev = child->previousSibling(); |
Node* next = child->nextSibling(); |
@@ -638,6 +639,8 @@ void ContainerNode::parserRemoveChild(Node& oldChild) |
oldChild.notifyMutationObserversNodeWillDetach(); |
HTMLFrameOwnerElement::UpdateSuspendScope suspendWidgetHierarchyUpdates; |
+ DocumentOrderedMap::RemoveScope treeRemoveScope; |
+ |
Node* prev = oldChild.previousSibling(); |
Node* next = oldChild.nextSibling(); |
removeBetween(prev, next, oldChild); |
@@ -685,7 +688,7 @@ void ContainerNode::removeChildren(SubtreeModificationAction action) |
#endif |
{ |
HTMLFrameOwnerElement::UpdateSuspendScope suspendWidgetHierarchyUpdates; |
- |
+ DocumentOrderedMap::RemoveScope treeRemoveScope; |
{ |
EventDispatchForbiddenScope assertNoEventDispatch; |
ScriptForbiddenScope forbidScript; |