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

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

Issue 154693002: Have ChildNodeList subclass NodeList instead of LiveNodeList (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update copyright 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
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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 SelectedOptions, 50 SelectedOptions,
51 DataListOptions, 51 DataListOptions,
52 MapAreas, 52 MapAreas,
53 FormControls, 53 FormControls,
54 54
55 ClassCollectionType, 55 ClassCollectionType,
56 TagCollectionType, 56 TagCollectionType,
57 HTMLTagCollectionType, 57 HTMLTagCollectionType,
58 58
59 // Live NodeList. 59 // Live NodeList.
60 ChildNodeListType,
61 NameNodeListType, 60 NameNodeListType,
62 RadioNodeListType, 61 RadioNodeListType,
63 RadioImgNodeListType, 62 RadioImgNodeListType,
64 LabelsNodeListType, 63 LabelsNodeListType,
65 }; 64 };
66 65
67 static const CollectionType FirstLiveNodeListType = ChildNodeListType; 66 static const CollectionType FirstLiveNodeListType = NameNodeListType;
68 67
69 inline bool isLiveNodeListType(CollectionType type) 68 inline bool isLiveNodeListType(CollectionType type)
70 { 69 {
71 return type >= FirstLiveNodeListType; 70 return type >= FirstLiveNodeListType;
72 } 71 }
73 72
74 } // namespace 73 } // namespace
75 74
76 #endif 75 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698