| Index: Source/core/dom/ContainerNode.cpp
|
| diff --git a/Source/core/dom/ContainerNode.cpp b/Source/core/dom/ContainerNode.cpp
|
| index 4b92caae4cce317d353bd732d6179bc908ba74b1..afb950178118d706f2a32e6d3f16ccc58556bce8 100644
|
| --- a/Source/core/dom/ContainerNode.cpp
|
| +++ b/Source/core/dom/ContainerNode.cpp
|
| @@ -599,7 +599,8 @@ void ContainerNode::parserRemoveChild(Node& oldChild)
|
| Node* prev = oldChild.previousSibling();
|
| Node* next = oldChild.nextSibling();
|
|
|
| - oldChild.updateAncestorConnectedSubframeCountForRemoval();
|
| + if (oldChild.connectedSubframeCount())
|
| + ChildFrameDisconnector(oldChild).disconnect();
|
|
|
| ChildListMutationScope(*this).willRemoveChild(oldChild);
|
| oldChild.notifyMutationObserversNodeWillDetach();
|
|
|