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

Unified Diff: Source/core/dom/ClassCollection.h

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.cpp ('k') | Source/core/dom/ClassCollection.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/ClassCollection.h
diff --git a/Source/core/dom/ClassCollection.h b/Source/core/dom/ClassCollection.h
index 257cbb3b837b2d151d8eedf559cdf9c269254401..0d340bedce1f31057c53ad13fbbe9df954e1fc27 100644
--- a/Source/core/dom/ClassCollection.h
+++ b/Source/core/dom/ClassCollection.h
@@ -40,10 +40,10 @@ class ClassCollection FINAL : public HTMLCollection {
public:
// classNames argument is an AtomicString because it is common for Elements to share the same class names.
// It is also used to construct a SpaceSplitString (m_classNames) and its constructor requires an AtomicString.
- static PassRefPtr<ClassCollection> create(ContainerNode& rootNode, CollectionType type, const AtomicString& classNames)
+ static PassRefPtrWillBeRawPtr<ClassCollection> create(ContainerNode& rootNode, CollectionType type, const AtomicString& classNames)
{
ASSERT_UNUSED(type, type == ClassCollectionType);
- return adoptRef(new ClassCollection(rootNode, classNames));
+ return adoptRefWillBeNoop(new ClassCollection(rootNode, classNames));
}
virtual ~ClassCollection();
« no previous file with comments | « Source/core/dom/ChildNodeList.cpp ('k') | Source/core/dom/ClassCollection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698