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

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

Issue 247263008: LiveNodeListBase code should not need to worry about id/name cache invalidation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Bug fix Created 6 years, 8 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/NodeRareData.cpp ('k') | Source/core/html/HTMLCollection.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/CollectionType.h
diff --git a/Source/core/html/CollectionType.h b/Source/core/html/CollectionType.h
index db7d302b992cf91477c30dc54da90192dca7ebbb..f57a0c223b94754346d1f75296b111154cd0ffc8 100644
--- a/Source/core/html/CollectionType.h
+++ b/Source/core/html/CollectionType.h
@@ -72,6 +72,11 @@ inline bool isUnnamedHTMLCollectionType(CollectionType type)
return type < FirstNamedCollectionType;
}
+inline bool isHTMLCollectionType(CollectionType type)
+{
+ return type < FirstLiveNodeListType;
+}
+
inline bool isLiveNodeListType(CollectionType type)
{
return type >= FirstLiveNodeListType;
« no previous file with comments | « Source/core/dom/NodeRareData.cpp ('k') | Source/core/html/HTMLCollection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698