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

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

Issue 280123002: Oilpan: move LiveNodeList collections to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Have NodeRareData clear out NodeListsNodeData instead. 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 | « Source/core/dom/ChildNodeList.h ('k') | Source/core/dom/ClassCollection.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/ChildNodeList.cpp
diff --git a/Source/core/dom/ChildNodeList.cpp b/Source/core/dom/ChildNodeList.cpp
index 8c72856e08ece51e5ed21997f0bc876decc3895b..c1a895cb932ef8eecadba7cf427c9f1c053b0440 100644
--- a/Source/core/dom/ChildNodeList.cpp
+++ b/Source/core/dom/ChildNodeList.cpp
@@ -41,7 +41,9 @@ Node* ChildNodeList::virtualOwnerNode() const
ChildNodeList::~ChildNodeList()
{
+#if !ENABLE(OILPAN)
m_parent->nodeLists()->removeChildNodeList(this);
+#endif
}
Node* ChildNodeList::traverseForwardToOffset(unsigned offset, Node& currentNode, unsigned& currentOffset) const
@@ -66,4 +68,11 @@ Node* ChildNodeList::traverseBackwardToOffset(unsigned offset, Node& currentNode
return 0;
}
+void ChildNodeList::trace(Visitor* visitor)
+{
+ visitor->trace(m_parent);
+ visitor->trace(m_collectionIndexCache);
+ NodeList::trace(visitor);
+}
+
} // namespace WebCore
« no previous file with comments | « Source/core/dom/ChildNodeList.h ('k') | Source/core/dom/ClassCollection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698