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

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

Issue 132923003: Make sure the rootNode of a LiveNodeListBase is always a ContainerNode (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 11 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/ClassNodeList.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/ClassNodeList.h
diff --git a/Source/core/dom/ClassNodeList.h b/Source/core/dom/ClassNodeList.h
index 9c26b7f43af285abf73c4bbb04fb36647fef3c9b..a6672bc6d86dd162c993ae96de0266629c7ce80d 100644
--- a/Source/core/dom/ClassNodeList.h
+++ b/Source/core/dom/ClassNodeList.h
@@ -41,7 +41,7 @@ class ClassNodeList FINAL : public LiveNodeList {
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<ClassNodeList> create(PassRefPtr<Node> rootNode, CollectionType type, const AtomicString& classNames)
+ static PassRefPtr<ClassNodeList> create(PassRefPtr<ContainerNode> rootNode, CollectionType type, const AtomicString& classNames)
{
ASSERT_UNUSED(type, type == ClassNodeListType);
return adoptRef(new ClassNodeList(rootNode, classNames));
@@ -52,7 +52,7 @@ public:
bool nodeMatchesInlined(const Element&) const;
private:
- ClassNodeList(PassRefPtr<Node> rootNode, const AtomicString& classNames);
+ ClassNodeList(PassRefPtr<ContainerNode> rootNode, const AtomicString& classNames);
virtual bool nodeMatches(const Element&) const OVERRIDE;
« no previous file with comments | « Source/core/dom/ChildNodeList.cpp ('k') | Source/core/dom/ClassNodeList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698