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

Unified Diff: Source/core/html/HTMLAllCollection.h

Issue 305963014: Introduce and use type casting functions for several HTMLCollection types (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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/TagCollection.h ('k') | Source/core/html/HTMLAllCollection.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLAllCollection.h
diff --git a/Source/core/html/HTMLAllCollection.h b/Source/core/html/HTMLAllCollection.h
index 2cc176d0eb58fa0e02de8feb1db57ce527667ea2..458e3bc96ac41b6df988f05879e8b681d347bbc2 100644
--- a/Source/core/html/HTMLAllCollection.h
+++ b/Source/core/html/HTMLAllCollection.h
@@ -39,9 +39,11 @@ public:
void namedGetter(const AtomicString& name, bool&, RefPtrWillBeRawPtr<NodeList>&, bool&, RefPtrWillBeRawPtr<Element>&);
private:
- HTMLAllCollection(ContainerNode&, CollectionType);
+ explicit HTMLAllCollection(ContainerNode&);
};
+DEFINE_TYPE_CASTS(HTMLAllCollection, LiveNodeListBase, collection, collection->type() == DocAll, collection.type() == DocAll);
+
} // namespace WebCore
#endif // HTMLAllCollection_h
« no previous file with comments | « Source/core/dom/TagCollection.h ('k') | Source/core/html/HTMLAllCollection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698