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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 size_t findIndex(const AtomicString& name, bool shouldIgnoreCase) const; | 70 size_t findIndex(const AtomicString& name, bool shouldIgnoreCase) const; |
71 size_t findIndex(Attr*) const; | 71 size_t findIndex(Attr*) const; |
72 | 72 |
73 protected: | 73 protected: |
74 size_t findSlowCase(const AtomicString& name, bool shouldIgnoreAttributeCase
) const; | 74 size_t findSlowCase(const AtomicString& name, bool shouldIgnoreAttributeCase
) const; |
75 | 75 |
76 ContainerMemberType m_attributes; | 76 ContainerMemberType m_attributes; |
77 }; | 77 }; |
78 | 78 |
79 class AttributeArray { | 79 class AttributeArray { |
80 DISALLOW_ALLOCATION(); | 80 DISALLOW_NEW(); |
81 public: | 81 public: |
82 using ValueType = const Attribute; | 82 using ValueType = const Attribute; |
83 | 83 |
84 AttributeArray(const Attribute* array, unsigned size) | 84 AttributeArray(const Attribute* array, unsigned size) |
85 : m_array(array) | 85 : m_array(array) |
86 , m_size(size) | 86 , m_size(size) |
87 { } | 87 { } |
88 | 88 |
89 const Attribute* data() const { return m_array; } | 89 const Attribute* data() const { return m_array; } |
90 unsigned size() const { return m_size; } | 90 unsigned size() const { return m_size; } |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 if (equalPossiblyIgnoringCase(name, it->name().toString(), shouldIgn
oreAttributeCase)) | 215 if (equalPossiblyIgnoringCase(name, it->name().toString(), shouldIgn
oreAttributeCase)) |
216 return index; | 216 return index; |
217 } | 217 } |
218 } | 218 } |
219 return kNotFound; | 219 return kNotFound; |
220 } | 220 } |
221 | 221 |
222 } // namespace blink | 222 } // namespace blink |
223 | 223 |
224 #endif // AttributeCollection_h | 224 #endif // AttributeCollection_h |
OLD | NEW |