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

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

Issue 143453010: Have getElementsByClassName() / getElementsByTagName*() return an HTMLCollection (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/fetch/FontResource.cpp ('k') | Source/core/html/HTMLAllCollection.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 reserv ed. 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserv ed.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 TableTBodies, // all <tbody> elements in this table 45 TableTBodies, // all <tbody> elements in this table
46 TSectionRows, // all row elements in this table section 46 TSectionRows, // all row elements in this table section
47 TableRows, 47 TableRows,
48 TRCells, // all cells in this row 48 TRCells, // all cells in this row
49 SelectOptions, 49 SelectOptions,
50 SelectedOptions, 50 SelectedOptions,
51 DataListOptions, 51 DataListOptions,
52 MapAreas, 52 MapAreas,
53 FormControls, 53 FormControls,
54 54
55 ClassCollectionType,
56 TagCollectionType,
57 HTMLTagCollectionType,
58
55 // Live NodeList. 59 // Live NodeList.
56 ChildNodeListType, 60 ChildNodeListType,
57 ClassNodeListType,
58 NameNodeListType, 61 NameNodeListType,
59 TagNodeListType,
60 HTMLTagNodeListType,
61 RadioNodeListType, 62 RadioNodeListType,
62 RadioImgNodeListType, 63 RadioImgNodeListType,
63 LabelsNodeListType, 64 LabelsNodeListType,
64 }; 65 };
65 66
66 static const CollectionType FirstLiveNodeListType = ChildNodeListType; 67 static const CollectionType FirstLiveNodeListType = ChildNodeListType;
67 68
68 inline bool isLiveNodeListType(CollectionType type) 69 inline bool isLiveNodeListType(CollectionType type)
69 { 70 {
70 return type >= FirstLiveNodeListType; 71 return type >= FirstLiveNodeListType;
71 } 72 }
72 73
73 } // namespace 74 } // namespace
74 75
75 #endif 76 #endif
OLDNEW
« no previous file with comments | « Source/core/fetch/FontResource.cpp ('k') | Source/core/html/HTMLAllCollection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698