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, 2008 Apple Inc. All rights reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2008 Apple Inc. All rights reserved. |
4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> |
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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 // This value must come after the last length unit type to enable iterat
ion over the length unit types. | 147 // This value must come after the last length unit type to enable iterat
ion over the length unit types. |
148 LengthUnitTypeCount, | 148 LengthUnitTypeCount, |
149 }; | 149 }; |
150 | 150 |
151 typedef Vector<double, CSSPrimitiveValue::LengthUnitTypeCount> CSSLengthArra
y; | 151 typedef Vector<double, CSSPrimitiveValue::LengthUnitTypeCount> CSSLengthArra
y; |
152 typedef BitVector CSSLengthTypeArray; | 152 typedef BitVector CSSLengthTypeArray; |
153 | 153 |
154 void accumulateLengthArray(CSSLengthArray&, double multiplier = 1) const; | 154 void accumulateLengthArray(CSSLengthArray&, double multiplier = 1) const; |
155 void accumulateLengthArray(CSSLengthArray&, CSSLengthTypeArray&, double mult
iplier = 1) const; | 155 void accumulateLengthArray(CSSLengthArray&, CSSLengthTypeArray&, double mult
iplier = 1) const; |
156 | 156 |
157 // This enum follows the BisonCSSParser::Units enum augmented with UNIT_FREQ
UENCY for frequencies. | |
158 enum UnitCategory { | 157 enum UnitCategory { |
159 UNumber, | 158 UNumber, |
160 UPercent, | 159 UPercent, |
161 ULength, | 160 ULength, |
162 UAngle, | 161 UAngle, |
163 UTime, | 162 UTime, |
164 UFrequency, | 163 UFrequency, |
165 UResolution, | 164 UResolution, |
166 UOther | 165 UOther |
167 }; | 166 }; |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 }; | 383 }; |
385 | 384 |
386 typedef CSSPrimitiveValue::CSSLengthArray CSSLengthArray; | 385 typedef CSSPrimitiveValue::CSSLengthArray CSSLengthArray; |
387 typedef CSSPrimitiveValue::CSSLengthTypeArray CSSLengthTypeArray; | 386 typedef CSSPrimitiveValue::CSSLengthTypeArray CSSLengthTypeArray; |
388 | 387 |
389 DEFINE_CSS_VALUE_TYPE_CASTS(CSSPrimitiveValue, isPrimitiveValue()); | 388 DEFINE_CSS_VALUE_TYPE_CASTS(CSSPrimitiveValue, isPrimitiveValue()); |
390 | 389 |
391 } // namespace blink | 390 } // namespace blink |
392 | 391 |
393 #endif // CSSPrimitiveValue_h | 392 #endif // CSSPrimitiveValue_h |
OLD | NEW |