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

Unified Diff: Source/core/dom/TagCollection.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/StaticNodeList.cpp ('k') | Source/core/dom/TagCollection.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/TagCollection.h
diff --git a/Source/core/dom/TagCollection.h b/Source/core/dom/TagCollection.h
index 7d4782a892478f406d74b0aaf74d06ed19078280..9314a1d1146a3779957493a1db74e64777656926 100644
--- a/Source/core/dom/TagCollection.h
+++ b/Source/core/dom/TagCollection.h
@@ -33,16 +33,16 @@ namespace WebCore {
// Collection that limits to a particular tag.
class TagCollection : public HTMLCollection {
public:
- static PassRefPtr<TagCollection> create(ContainerNode& rootNode, const AtomicString& namespaceURI, const AtomicString& localName)
+ static PassRefPtrWillBeRawPtr<TagCollection> create(ContainerNode& rootNode, const AtomicString& namespaceURI, const AtomicString& localName)
{
ASSERT(namespaceURI != starAtom);
- return adoptRef(new TagCollection(rootNode, TagCollectionType, namespaceURI, localName));
+ return adoptRefWillBeNoop(new TagCollection(rootNode, TagCollectionType, namespaceURI, localName));
}
- static PassRefPtr<TagCollection> create(ContainerNode& rootNode, CollectionType type, const AtomicString& localName)
+ static PassRefPtrWillBeRawPtr<TagCollection> create(ContainerNode& rootNode, CollectionType type, const AtomicString& localName)
{
ASSERT_UNUSED(type, type == TagCollectionType);
- return adoptRef(new TagCollection(rootNode, TagCollectionType, starAtom, localName));
+ return adoptRefWillBeNoop(new TagCollection(rootNode, TagCollectionType, starAtom, localName));
}
virtual ~TagCollection();
@@ -58,10 +58,10 @@ protected:
class HTMLTagCollection FINAL : public TagCollection {
public:
- static PassRefPtr<HTMLTagCollection> create(ContainerNode& rootNode, CollectionType type, const AtomicString& localName)
+ static PassRefPtrWillBeRawPtr<HTMLTagCollection> create(ContainerNode& rootNode, CollectionType type, const AtomicString& localName)
{
ASSERT_UNUSED(type, type == HTMLTagCollectionType);
- return adoptRef(new HTMLTagCollection(rootNode, localName));
+ return adoptRefWillBeNoop(new HTMLTagCollection(rootNode, localName));
}
bool elementMatches(const Element&) const;
« no previous file with comments | « Source/core/dom/StaticNodeList.cpp ('k') | Source/core/dom/TagCollection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698