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

Unified Diff: Source/core/dom/ClassCollection.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/bindings/v8/custom/V8HTMLCollectionCustom.cpp ('k') | Source/core/dom/TagCollection.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/ClassCollection.h
diff --git a/Source/core/dom/ClassCollection.h b/Source/core/dom/ClassCollection.h
index 0d340bedce1f31057c53ad13fbbe9df954e1fc27..d9ddd3b3e172808c33fb04e1c82dd741e7a95dde 100644
--- a/Source/core/dom/ClassCollection.h
+++ b/Source/core/dom/ClassCollection.h
@@ -57,6 +57,8 @@ private:
AtomicString m_originalClassNames;
};
+DEFINE_TYPE_CASTS(ClassCollection, LiveNodeListBase, collection, collection->type() == ClassCollectionType, collection.type() == ClassCollectionType);
+
inline bool ClassCollection::elementMatches(const Element& testElement) const
{
if (!testElement.hasClass())
« no previous file with comments | « Source/bindings/v8/custom/V8HTMLCollectionCustom.cpp ('k') | Source/core/dom/TagCollection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698