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

Side by Side Diff: third_party/WebKit/Source/core/html/CollectionType.h

Issue 2868823002: getElementsByTagName() should take a qualifiedName in parameter (Closed)
Patch Set: Rebased And Align with review comments Created 3 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights
5 * reserved. 5 * reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 kFormControls, 50 kFormControls,
51 51
52 // Named HTMLCollection types cached in the document. 52 // Named HTMLCollection types cached in the document.
53 kWindowNamedItems, 53 kWindowNamedItems,
54 kDocumentNamedItems, 54 kDocumentNamedItems,
55 55
56 // Named HTMLCollection types cached in elements. 56 // Named HTMLCollection types cached in elements.
57 kClassCollectionType, 57 kClassCollectionType,
58 kTagCollectionType, 58 kTagCollectionType,
59 kHTMLTagCollectionType, 59 kHTMLTagCollectionType,
60 kTagCollectionNSType,
60 61
61 // Live NodeList. 62 // Live NodeList.
62 kNameNodeListType, 63 kNameNodeListType,
63 kRadioNodeListType, 64 kRadioNodeListType,
64 kRadioImgNodeListType, 65 kRadioImgNodeListType,
65 kLabelsNodeListType, 66 kLabelsNodeListType,
66 }; 67 };
67 68
68 static const CollectionType kFirstNamedCollectionType = kWindowNamedItems; 69 static const CollectionType kFirstNamedCollectionType = kWindowNamedItems;
69 static const CollectionType kFirstLiveNodeListType = kNameNodeListType; 70 static const CollectionType kFirstLiveNodeListType = kNameNodeListType;
70 71
71 inline bool IsUnnamedHTMLCollectionType(CollectionType type) { 72 inline bool IsUnnamedHTMLCollectionType(CollectionType type) {
72 return type < kFirstNamedCollectionType; 73 return type < kFirstNamedCollectionType;
73 } 74 }
74 75
75 inline bool IsHTMLCollectionType(CollectionType type) { 76 inline bool IsHTMLCollectionType(CollectionType type) {
76 return type < kFirstLiveNodeListType; 77 return type < kFirstLiveNodeListType;
77 } 78 }
78 79
79 inline bool IsLiveNodeListType(CollectionType type) { 80 inline bool IsLiveNodeListType(CollectionType type) {
80 return type >= kFirstLiveNodeListType; 81 return type >= kFirstLiveNodeListType;
81 } 82 }
82 83
83 } // namespace blink 84 } // namespace blink
84 85
85 #endif 86 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/TagCollection.cpp ('k') | third_party/WebKit/Source/core/html/HTMLCollection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698