Commit 3f7a189e authored by esprehn@chromium.org's avatar esprehn@chromium.org

Remove frame disconnection counter updating in removeDetachedChildren()

This method is only called from destructors or document teardown. We
apparenly also skip it when in Oilpan mode. That would seem to indicate
that by the time we get here there should be no subframes left connected.

Lets change the loop into an ASSERT to verify that.

Review URL: https://codereview.chromium.org/303653005

git-svn-id: svn://svn.chromium.org/blink/trunk@175086 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 4cad3fe5
...@@ -78,10 +78,7 @@ static void collectChildrenAndRemoveFromOldParent(Node& node, NodeVector& nodes, ...@@ -78,10 +78,7 @@ static void collectChildrenAndRemoveFromOldParent(Node& node, NodeVector& nodes,
#if !ENABLE(OILPAN) #if !ENABLE(OILPAN)
void ContainerNode::removeDetachedChildren() void ContainerNode::removeDetachedChildren()
{ {
if (connectedSubframeCount()) { ASSERT(!connectedSubframeCount());
for (Node* child = firstChild(); child; child = child->nextSibling())
child->updateAncestorConnectedSubframeCountForRemoval();
}
ASSERT(needsAttach()); ASSERT(needsAttach());
removeDetachedChildrenInContainer<Node, ContainerNode>(*this); removeDetachedChildrenInContainer<Node, ContainerNode>(*this);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment