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

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

Issue 303653005: Remove frame disconnection counter updating in removeDetachedChildren() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: git cl try Created 6 years, 7 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 | « no previous file | 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
diff --git a/Source/core/dom/ContainerNode.cpp b/Source/core/dom/ContainerNode.cpp
index 427e089656ad09e4104b4bd8a2f08822764e1101..c8c7ec052dcec662753ded4ecc35a49780439c3c 100644
--- a/Source/core/dom/ContainerNode.cpp
+++ b/Source/core/dom/ContainerNode.cpp
@@ -74,10 +74,7 @@ static void collectChildrenAndRemoveFromOldParent(Node& node, NodeVector& nodes,
#if !ENABLE(OILPAN)
void ContainerNode::removeDetachedChildren()
{
- if (connectedSubframeCount()) {
- for (Node* child = firstChild(); child; child = child->nextSibling())
- child->updateAncestorConnectedSubframeCountForRemoval();
- }
+ ASSERT(!connectedSubframeCount());
ASSERT(needsAttach());
removeDetachedChildrenInContainer<Node, ContainerNode>(*this);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698