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

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: Pre-emptively GC a long runnning test 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
Index: Source/core/dom/ChildNodeList.cpp
diff --git a/Source/core/dom/ChildNodeList.cpp b/Source/core/dom/ChildNodeList.cpp
index 8c72856e08ece51e5ed21997f0bc876decc3895b..7cc945d30466169fe5a65bb196b4cff3a58224ed 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);
+ m_collectionIndexCache.traceAfterDispatch(visitor);
+ NodeList::trace(visitor);
+}
+
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698