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

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

Issue 23983034: [oilpan] Handlify Node raw pointers in html/ and subclasses of dom/LiveNodeList. (Closed) Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: Created 7 years, 3 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
Index: Source/core/dom/TagNodeList.h
diff --git a/Source/core/dom/TagNodeList.h b/Source/core/dom/TagNodeList.h
index 3f6001a09d8e8b00b6a8a8bbe224c60edfd87693..edd30687dccf080bb51fa3c987cb48b03cb40676 100644
--- a/Source/core/dom/TagNodeList.h
+++ b/Source/core/dom/TagNodeList.h
@@ -33,13 +33,13 @@ namespace WebCore {
// NodeList that limits to a particular tag.
class TagNodeList : public LiveNodeList {
public:
- static PassRefPtr<TagNodeList> create(PassRefPtr<Node> rootNode, const AtomicString& namespaceURI, const AtomicString& localName)
+ static PassRefPtr<TagNodeList> create(const Handle<Node>& rootNode, const AtomicString& namespaceURI, const AtomicString& localName)
{
ASSERT(namespaceURI != starAtom);
return adoptRef(new TagNodeList(rootNode, TagNodeListType, namespaceURI, localName));
}
- static PassRefPtr<TagNodeList> create(PassRefPtr<Node> rootNode, CollectionType type, const AtomicString& localName)
+ static PassRefPtr<TagNodeList> create(const Handle<Node>& rootNode, CollectionType type, const AtomicString& localName)
{
ASSERT_UNUSED(type, type == TagNodeListType);
return adoptRef(new TagNodeList(rootNode, TagNodeListType, starAtom, localName));
@@ -48,7 +48,7 @@ public:
virtual ~TagNodeList();
protected:
- TagNodeList(PassRefPtr<Node> rootNode, CollectionType, const AtomicString& namespaceURI, const AtomicString& localName);
+ TagNodeList(const Handle<Node>& rootNode, CollectionType, const AtomicString& namespaceURI, const AtomicString& localName);
virtual bool nodeMatches(const Handle<Element>&) const;
@@ -58,7 +58,7 @@ protected:
class HTMLTagNodeList : public TagNodeList {
public:
- static PassRefPtr<HTMLTagNodeList> create(PassRefPtr<Node> rootNode, CollectionType type, const AtomicString& localName)
+ static PassRefPtr<HTMLTagNodeList> create(const Handle<Node>& rootNode, CollectionType type, const AtomicString& localName)
{
ASSERT_UNUSED(type, type == HTMLTagNodeListType);
return adoptRef(new HTMLTagNodeList(rootNode, localName));
@@ -67,7 +67,7 @@ public:
bool nodeMatchesInlined(const Handle<Element>&) const;
private:
- HTMLTagNodeList(PassRefPtr<Node> rootNode, const AtomicString& localName);
+ HTMLTagNodeList(const Handle<Node>& rootNode, const AtomicString& localName);
virtual bool nodeMatches(const Handle<Element>&) const;

Powered by Google App Engine
This is Rietveld 408576698