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

Unified Diff: third_party/WebKit/Source/core/dom/Node.cpp

Issue 1770523002: Track connected subframes per-Document instead of per-Node. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix various crashes but still doesn't refcount tracked nodes (and needs to) Created 4 years, 10 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 | « third_party/WebKit/Source/core/dom/Node.h ('k') | third_party/WebKit/Source/core/dom/NodeRareData.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/Node.cpp
diff --git a/third_party/WebKit/Source/core/dom/Node.cpp b/third_party/WebKit/Source/core/dom/Node.cpp
index a9c7a70153d49d47c19a290c795bdc87495ab167..ad03dd4510d81d07cf58f1dd7c6e0a495e7d4d61 100644
--- a/third_party/WebKit/Source/core/dom/Node.cpp
+++ b/third_party/WebKit/Source/core/dom/Node.cpp
@@ -2229,34 +2229,6 @@ void Node::removedLastRef()
}
#endif
-unsigned Node::connectedSubframeCount() const
-{
- return hasRareData() ? rareData()->connectedSubframeCount() : 0;
-}
-
-void Node::incrementConnectedSubframeCount(unsigned amount)
-{
- ASSERT(isContainerNode());
- ensureRareData().incrementConnectedSubframeCount(amount);
-}
-
-void Node::decrementConnectedSubframeCount(unsigned amount)
-{
- rareData()->decrementConnectedSubframeCount(amount);
-}
-
-void Node::updateAncestorConnectedSubframeCountForInsertion() const
-{
- unsigned count = connectedSubframeCount();
-
- if (!count)
- return;
-
- ScriptForbiddenScope forbidScriptDuringRawIteration;
- for (Node* node = parentOrShadowHostNode(); node; node = node->parentOrShadowHostNode())
- node->incrementConnectedSubframeCount(count);
-}
-
PassRefPtrWillBeRawPtr<StaticNodeList> Node::getDestinationInsertionPoints()
{
updateDistribution();
« no previous file with comments | « third_party/WebKit/Source/core/dom/Node.h ('k') | third_party/WebKit/Source/core/dom/NodeRareData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698