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

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

Issue 2868823002: getElementsByTagName() should take a qualifiedName in parameter (Closed)
Patch Set: Added new file AllDescendantsCollection.h 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,
61 kAllDescendantsCollectionType,
60 62
61 // Live NodeList. 63 // Live NodeList.
62 kNameNodeListType, 64 kNameNodeListType,
63 kRadioNodeListType, 65 kRadioNodeListType,
64 kRadioImgNodeListType, 66 kRadioImgNodeListType,
65 kLabelsNodeListType, 67 kLabelsNodeListType,
66 }; 68 };
67 69
68 static const CollectionType kFirstNamedCollectionType = kWindowNamedItems; 70 static const CollectionType kFirstNamedCollectionType = kWindowNamedItems;
69 static const CollectionType kFirstLiveNodeListType = kNameNodeListType; 71 static const CollectionType kFirstLiveNodeListType = kNameNodeListType;
70 72
71 inline bool IsUnnamedHTMLCollectionType(CollectionType type) { 73 inline bool IsUnnamedHTMLCollectionType(CollectionType type) {
72 return type < kFirstNamedCollectionType; 74 return type < kFirstNamedCollectionType;
73 } 75 }
74 76
75 inline bool IsHTMLCollectionType(CollectionType type) { 77 inline bool IsHTMLCollectionType(CollectionType type) {
76 return type < kFirstLiveNodeListType; 78 return type < kFirstLiveNodeListType;
77 } 79 }
78 80
79 inline bool IsLiveNodeListType(CollectionType type) { 81 inline bool IsLiveNodeListType(CollectionType type) {
80 return type >= kFirstLiveNodeListType; 82 return type >= kFirstLiveNodeListType;
81 } 83 }
82 84
83 } // namespace blink 85 } // namespace blink
84 86
85 #endif 87 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698