OLD | NEW |
1 /* | 1 /* |
2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) | 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) |
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 unsigned m_primitiveUnitType : 7; // CSSPrimitiveValue::UnitType | 177 unsigned m_primitiveUnitType : 7; // CSSPrimitiveValue::UnitType |
178 mutable unsigned m_hasCachedCSSText : 1; | 178 mutable unsigned m_hasCachedCSSText : 1; |
179 unsigned m_isQuirkValue : 1; | 179 unsigned m_isQuirkValue : 1; |
180 | 180 |
181 unsigned m_valueListSeparator : ValueListSeparatorBits; | 181 unsigned m_valueListSeparator : ValueListSeparatorBits; |
182 | 182 |
183 private: | 183 private: |
184 unsigned m_classType : ClassTypeBits; // ClassType | 184 unsigned m_classType : ClassTypeBits; // ClassType |
185 }; | 185 }; |
186 | 186 |
| 187 WILL_BE_EAGERLY_TRACED(CSSValue); |
| 188 |
187 template<typename CSSValueType, size_t inlineCapacity> | 189 template<typename CSSValueType, size_t inlineCapacity> |
188 inline bool compareCSSValueVector(const WillBeHeapVector<RefPtrWillBeMember<CSSV
alueType>, inlineCapacity>& firstVector, const WillBeHeapVector<RefPtrWillBeMemb
er<CSSValueType>, inlineCapacity>& secondVector) | 190 inline bool compareCSSValueVector(const WillBeHeapVector<RefPtrWillBeMember<CSSV
alueType>, inlineCapacity>& firstVector, const WillBeHeapVector<RefPtrWillBeMemb
er<CSSValueType>, inlineCapacity>& secondVector) |
189 { | 191 { |
190 size_t size = firstVector.size(); | 192 size_t size = firstVector.size(); |
191 if (size != secondVector.size()) | 193 if (size != secondVector.size()) |
192 return false; | 194 return false; |
193 | 195 |
194 for (size_t i = 0; i < size; i++) { | 196 for (size_t i = 0; i < size; i++) { |
195 const RefPtrWillBeMember<CSSValueType>& firstPtr = firstVector[i]; | 197 const RefPtrWillBeMember<CSSValueType>& firstPtr = firstVector[i]; |
196 const RefPtrWillBeMember<CSSValueType>& secondPtr = secondVector[i]; | 198 const RefPtrWillBeMember<CSSValueType>& secondPtr = secondVector[i]; |
(...skipping 21 matching lines...) Expand all Loading... |
218 { | 220 { |
219 return first ? second && first->equals(*second) : !second; | 221 return first ? second && first->equals(*second) : !second; |
220 } | 222 } |
221 | 223 |
222 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ | 224 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ |
223 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, value.predica
te) | 225 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, value.predica
te) |
224 | 226 |
225 } // namespace blink | 227 } // namespace blink |
226 | 228 |
227 #endif // CSSValue_h | 229 #endif // CSSValue_h |
OLD | NEW |