| 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;
|
|
|