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