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

Side by Side Diff: Source/core/dom/AttributeCollection.h

Issue 448043003: Drop const_iterator for AttributeCollection (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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/css/SelectorChecker.cpp ('k') | Source/core/dom/DatasetDOMStringMap.cpp » ('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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * Copyright (C) 2014 Apple Inc. All rights reserved. 3 * Copyright (C) 2014 Apple Inc. All rights reserved.
4 * Copyright (C) 2014 Samsung Electronics. All rights reserved. 4 * Copyright (C) 2014 Samsung Electronics. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are 7 * modification, are permitted provided that the following conditions are
8 * met: 8 * met:
9 * 9 *
10 * * Redistributions of source code must retain the above copyright 10 * * Redistributions of source code must retain the above copyright
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 const Attribute* data() const { return m_array; } 86 const Attribute* data() const { return m_array; }
87 unsigned size() const { return m_size; } 87 unsigned size() const { return m_size; }
88 88
89 private: 89 private:
90 const Attribute* m_array; 90 const Attribute* m_array;
91 unsigned m_size; 91 unsigned m_size;
92 }; 92 };
93 93
94 class AttributeCollection : public AttributeCollectionGeneric<const AttributeArr ay> { 94 class AttributeCollection : public AttributeCollectionGeneric<const AttributeArr ay> {
95 public: 95 public:
96 typedef iterator const_iterator;
97
98 AttributeCollection() 96 AttributeCollection()
99 : AttributeCollectionGeneric<const AttributeArray>(AttributeArray(nullpt r, 0)) 97 : AttributeCollectionGeneric<const AttributeArray>(AttributeArray(nullpt r, 0))
100 { } 98 { }
101 99
102 AttributeCollection(const Attribute* array, unsigned size) 100 AttributeCollection(const Attribute* array, unsigned size)
103 : AttributeCollectionGeneric<const AttributeArray>(AttributeArray(array, size)) 101 : AttributeCollectionGeneric<const AttributeArray>(AttributeArray(array, size))
104 { } 102 { }
105 }; 103 };
106 104
107 typedef Vector<Attribute, 4> AttributeVector; 105 typedef Vector<Attribute, 4> AttributeVector;
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 if (equalPossiblyIgnoringCase(name, it->name().toString(), shouldIgn oreAttributeCase)) 212 if (equalPossiblyIgnoringCase(name, it->name().toString(), shouldIgn oreAttributeCase))
215 return index; 213 return index;
216 } 214 }
217 } 215 }
218 return kNotFound; 216 return kNotFound;
219 } 217 }
220 218
221 } // namespace blink 219 } // namespace blink
222 220
223 #endif // AttributeCollection_h 221 #endif // AttributeCollection_h
OLDNEW
« no previous file with comments | « Source/core/css/SelectorChecker.cpp ('k') | Source/core/dom/DatasetDOMStringMap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698