| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 bool isBaseValueList() const { return m_classType == ValueListClass; } | 55 bool isBaseValueList() const { return m_classType == ValueListClass; } |
| 56 | 56 |
| 57 bool isBasicShapeValue() const { return m_classType >= BasicShapeCircleClass
&& m_classType <= BasicShapeInsetClass; } | 57 bool isBasicShapeValue() const { return m_classType >= BasicShapeCircleClass
&& m_classType <= BasicShapeInsetClass; } |
| 58 bool isBasicShapeCircleValue() const { return m_classType == BasicShapeCircl
eClass; } | 58 bool isBasicShapeCircleValue() const { return m_classType == BasicShapeCircl
eClass; } |
| 59 bool isBasicShapeEllipseValue() const { return m_classType == BasicShapeElli
pseClass; } | 59 bool isBasicShapeEllipseValue() const { return m_classType == BasicShapeElli
pseClass; } |
| 60 bool isBasicShapePolygonValue() const { return m_classType == BasicShapePoly
gonClass; } | 60 bool isBasicShapePolygonValue() const { return m_classType == BasicShapePoly
gonClass; } |
| 61 bool isBasicShapeInsetValue() const { return m_classType == BasicShapeInsetC
lass; } | 61 bool isBasicShapeInsetValue() const { return m_classType == BasicShapeInsetC
lass; } |
| 62 | 62 |
| 63 bool isBorderImageSliceValue() const { return m_classType == BorderImageSlic
eClass; } | 63 bool isBorderImageSliceValue() const { return m_classType == BorderImageSlic
eClass; } |
| 64 bool isColorValue() const { return m_classType == ColorClass; } | 64 bool isColorValue() const { return m_classType == ColorClass; } |
| 65 bool isConicGradientValue() const { return m_classType == ConicGradientClass
; } |
| 65 bool isCounterValue() const { return m_classType == CounterClass; } | 66 bool isCounterValue() const { return m_classType == CounterClass; } |
| 66 bool isCursorImageValue() const { return m_classType == CursorImageClass; } | 67 bool isCursorImageValue() const { return m_classType == CursorImageClass; } |
| 67 bool isCrossfadeValue() const { return m_classType == CrossfadeClass; } | 68 bool isCrossfadeValue() const { return m_classType == CrossfadeClass; } |
| 68 bool isPaintValue() const { return m_classType == PaintClass; } | 69 bool isPaintValue() const { return m_classType == PaintClass; } |
| 69 bool isFontFeatureValue() const { return m_classType == FontFeatureClass; } | 70 bool isFontFeatureValue() const { return m_classType == FontFeatureClass; } |
| 70 bool isFontFamilyValue() const { return m_classType == FontFamilyClass; } | 71 bool isFontFamilyValue() const { return m_classType == FontFamilyClass; } |
| 71 bool isFontFaceSrcValue() const { return m_classType == FontFaceSrcClass; } | 72 bool isFontFaceSrcValue() const { return m_classType == FontFaceSrcClass; } |
| 72 bool isFunctionValue() const { return m_classType == FunctionClass; } | 73 bool isFunctionValue() const { return m_classType == FunctionClass; } |
| 73 bool isCustomIdentValue() const { return m_classType == CustomIdentClass; } | 74 bool isCustomIdentValue() const { return m_classType == CustomIdentClass; } |
| 74 bool isImageGeneratorValue() const { return m_classType >= CrossfadeClass &&
m_classType <= RadialGradientClass; } | 75 bool isImageGeneratorValue() const { return m_classType >= CrossfadeClass &&
m_classType <= ConicGradientClass; } |
| 75 bool isGradientValue() const { return m_classType >= LinearGradientClass &&
m_classType <= RadialGradientClass; } | 76 bool isGradientValue() const { return m_classType >= LinearGradientClass &&
m_classType <= ConicGradientClass; } |
| 76 bool isImageSetValue() const { return m_classType == ImageSetClass; } | 77 bool isImageSetValue() const { return m_classType == ImageSetClass; } |
| 77 bool isImageValue() const { return m_classType == ImageClass; } | 78 bool isImageValue() const { return m_classType == ImageClass; } |
| 78 bool isImplicitInitialValue() const; | 79 bool isImplicitInitialValue() const; |
| 79 bool isInheritedValue() const { return m_classType == InheritedClass; } | 80 bool isInheritedValue() const { return m_classType == InheritedClass; } |
| 80 bool isInitialValue() const { return m_classType == InitialClass; } | 81 bool isInitialValue() const { return m_classType == InitialClass; } |
| 81 bool isUnsetValue() const { return m_classType == UnsetClass; } | 82 bool isUnsetValue() const { return m_classType == UnsetClass; } |
| 82 bool isCSSWideKeyword() const { return m_classType >= InheritedClass && m_cl
assType <= UnsetClass; } | 83 bool isCSSWideKeyword() const { return m_classType >= InheritedClass && m_cl
assType <= UnsetClass; } |
| 83 bool isLinearGradientValue() const { return m_classType == LinearGradientCla
ss; } | 84 bool isLinearGradientValue() const { return m_classType == LinearGradientCla
ss; } |
| 84 bool isPathValue() const { return m_classType == PathClass; } | 85 bool isPathValue() const { return m_classType == PathClass; } |
| 85 bool isQuadValue() const { return m_classType == QuadClass; } | 86 bool isQuadValue() const { return m_classType == QuadClass; } |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 | 135 |
| 135 // Image classes. | 136 // Image classes. |
| 136 ImageClass, | 137 ImageClass, |
| 137 CursorImageClass, | 138 CursorImageClass, |
| 138 | 139 |
| 139 // Image generator classes. | 140 // Image generator classes. |
| 140 CrossfadeClass, | 141 CrossfadeClass, |
| 141 PaintClass, | 142 PaintClass, |
| 142 LinearGradientClass, | 143 LinearGradientClass, |
| 143 RadialGradientClass, | 144 RadialGradientClass, |
| 145 ConicGradientClass, |
| 144 | 146 |
| 145 // Timing function classes. | 147 // Timing function classes. |
| 146 CubicBezierTimingFunctionClass, | 148 CubicBezierTimingFunctionClass, |
| 147 StepsTimingFunctionClass, | 149 StepsTimingFunctionClass, |
| 148 | 150 |
| 149 // Other class types. | 151 // Other class types. |
| 150 BorderImageSliceClass, | 152 BorderImageSliceClass, |
| 151 FontFeatureClass, | 153 FontFeatureClass, |
| 152 FontFaceSrcClass, | 154 FontFaceSrcClass, |
| 153 FontFamilyClass, | 155 FontFamilyClass, |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 return false; | 263 return false; |
| 262 return first->equals(*second); | 264 return first->equals(*second); |
| 263 } | 265 } |
| 264 | 266 |
| 265 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ | 267 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ |
| 266 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, value.predica
te) | 268 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, value.predica
te) |
| 267 | 269 |
| 268 } // namespace blink | 270 } // namespace blink |
| 269 | 271 |
| 270 #endif // CSSValue_h | 272 #endif // CSSValue_h |
| OLD | NEW |