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

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

Issue 10695128: Merge 120979 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1180/
Patch Set: Created 8 years, 5 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/WebCore/dom/NodeRareData.h ('k') | Source/WebCore/dom/TagNodeList.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/dom/TagNodeList.h
===================================================================
--- Source/WebCore/dom/TagNodeList.h (revision 122245)
+++ Source/WebCore/dom/TagNodeList.h (working copy)
@@ -34,9 +34,15 @@
public:
static PassRefPtr<TagNodeList> create(PassRefPtr<Node> rootNode, const AtomicString& namespaceURI, const AtomicString& localName)
{
+ ASSERT(namespaceURI != starAtom);
return adoptRef(new TagNodeList(rootNode, namespaceURI, localName));
}
+ static PassRefPtr<TagNodeList> create(PassRefPtr<Node> rootNode, const AtomicString& localName)
+ {
+ return adoptRef(new TagNodeList(rootNode, starAtom, localName));
+ }
+
virtual ~TagNodeList();
protected:
@@ -50,13 +56,13 @@
class HTMLTagNodeList : public TagNodeList {
public:
- static PassRefPtr<TagNodeList> create(PassRefPtr<Node> rootNode, const AtomicString& namespaceURI, const AtomicString& localName)
+ static PassRefPtr<HTMLTagNodeList> create(PassRefPtr<Node> rootNode, const AtomicString& localName)
{
- return adoptRef(new HTMLTagNodeList(rootNode, namespaceURI, localName));
+ return adoptRef(new HTMLTagNodeList(rootNode, localName));
}
private:
- HTMLTagNodeList(PassRefPtr<Node> rootNode, const AtomicString& namespaceURI, const AtomicString& localName);
+ HTMLTagNodeList(PassRefPtr<Node> rootNode, const AtomicString& localName);
virtual bool nodeMatches(Element*) const;
« no previous file with comments | « Source/WebCore/dom/NodeRareData.h ('k') | Source/WebCore/dom/TagNodeList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698