OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |