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

Unified Diff: Source/core/dom/EmptyNodeList.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/EmptyNodeList.h ('k') | Source/core/dom/LiveNodeList.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/EmptyNodeList.cpp
diff --git a/Source/core/dom/EmptyNodeList.cpp b/Source/core/dom/EmptyNodeList.cpp
index 26104fbe28ec6c94b80c6a1840901c081328482a..ad76558f4030dd8d28f1c82e6363c70152024bce 100644
--- a/Source/core/dom/EmptyNodeList.cpp
+++ b/Source/core/dom/EmptyNodeList.cpp
@@ -39,7 +39,9 @@ namespace WebCore {
EmptyNodeList::~EmptyNodeList()
{
+#if !ENABLE(OILPAN)
m_owner->nodeLists()->removeEmptyChildNodeList(this);
+#endif
}
Node* EmptyNodeList::virtualOwnerNode() const
@@ -47,4 +49,10 @@ Node* EmptyNodeList::virtualOwnerNode() const
return &ownerNode();
}
+void EmptyNodeList::trace(Visitor* visitor)
+{
+ visitor->trace(m_owner);
+ NodeList::trace(visitor);
+}
+
} // namespace WebCore
« no previous file with comments | « Source/core/dom/EmptyNodeList.h ('k') | Source/core/dom/LiveNodeList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698