| Index: Source/core/dom/ContainerNode.cpp
|
| diff --git a/Source/core/dom/ContainerNode.cpp b/Source/core/dom/ContainerNode.cpp
|
| index 1e0d9ff4d94ba3a2b715824b1d6f8ec6c518e108..3b77ddc0293371f09d9d80427d15e8b5bf96fd52 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();
|
|
|