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

Unified Diff: Source/core/html/HTMLNameCollection.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/html/HTMLNameCollection.h ('k') | Source/core/html/HTMLObjectElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLNameCollection.cpp
diff --git a/Source/core/html/HTMLNameCollection.cpp b/Source/core/html/HTMLNameCollection.cpp
index 48def4be81fbe8edbf79dad1c3432ba73485ae8e..99bf5362dfe71b2a6f995b221c720b177bea1b8c 100644
--- a/Source/core/html/HTMLNameCollection.cpp
+++ b/Source/core/html/HTMLNameCollection.cpp
@@ -42,10 +42,11 @@ HTMLNameCollection::HTMLNameCollection(ContainerNode& document, CollectionType t
HTMLNameCollection::~HTMLNameCollection()
{
- ASSERT(ownerNode().isDocumentNode());
ASSERT(type() == WindowNamedItems || type() == DocumentNamedItems);
-
+#if !ENABLE(OILPAN)
+ ASSERT(ownerNode().isDocumentNode());
ownerNode().nodeLists()->removeCache(this, type(), m_name);
+#endif
}
Element* HTMLNameCollection::virtualItemAfter(Element* previous) const
« no previous file with comments | « Source/core/html/HTMLNameCollection.h ('k') | Source/core/html/HTMLObjectElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698