| 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 159         UNumber, | 159         UNumber, | 
| 160         UPercent, | 160         UPercent, | 
| 161         ULength, | 161         ULength, | 
| 162         UAngle, | 162         UAngle, | 
| 163         UTime, | 163         UTime, | 
| 164         UFrequency, | 164         UFrequency, | 
| 165         UResolution, | 165         UResolution, | 
| 166         UOther | 166         UOther | 
| 167     }; | 167     }; | 
| 168     static UnitCategory unitCategory(UnitType); | 168     static UnitCategory unitCategory(UnitType); | 
|  | 169     static float clampToCSSLengthRange(float); | 
| 169 | 170 | 
| 170     static void initUnitTable(); | 171     static void initUnitTable(); | 
| 171 | 172 | 
| 172     static UnitType fromName(const String& unit); | 173     static UnitType fromName(const String& unit); | 
| 173 | 174 | 
| 174     bool isAngle() const | 175     bool isAngle() const | 
| 175     { | 176     { | 
| 176         return m_primitiveUnitType == CSS_DEG | 177         return m_primitiveUnitType == CSS_DEG | 
| 177                || m_primitiveUnitType == CSS_RAD | 178                || m_primitiveUnitType == CSS_RAD | 
| 178                || m_primitiveUnitType == CSS_GRAD | 179                || m_primitiveUnitType == CSS_GRAD | 
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 389 }; | 390 }; | 
| 390 | 391 | 
| 391 typedef CSSPrimitiveValue::CSSLengthArray CSSLengthArray; | 392 typedef CSSPrimitiveValue::CSSLengthArray CSSLengthArray; | 
| 392 typedef CSSPrimitiveValue::CSSLengthTypeArray CSSLengthTypeArray; | 393 typedef CSSPrimitiveValue::CSSLengthTypeArray CSSLengthTypeArray; | 
| 393 | 394 | 
| 394 DEFINE_CSS_VALUE_TYPE_CASTS(CSSPrimitiveValue, isPrimitiveValue()); | 395 DEFINE_CSS_VALUE_TYPE_CASTS(CSSPrimitiveValue, isPrimitiveValue()); | 
| 395 | 396 | 
| 396 } // namespace blink | 397 } // namespace blink | 
| 397 | 398 | 
| 398 #endif // CSSPrimitiveValue_h | 399 #endif // CSSPrimitiveValue_h | 
| OLD | NEW | 
|---|