| 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 bool isPaintValue() const { return m_classType == PaintClass; } | 86 bool isPaintValue() const { return m_classType == PaintClass; } |
| 87 bool isFontFeatureValue() const { return m_classType == FontFeatureClass; } | 87 bool isFontFeatureValue() const { return m_classType == FontFeatureClass; } |
| 88 bool isFontFamilyValue() const { return m_classType == FontFamilyClass; } | 88 bool isFontFamilyValue() const { return m_classType == FontFamilyClass; } |
| 89 bool isFontFaceSrcValue() const { return m_classType == FontFaceSrcClass; } | 89 bool isFontFaceSrcValue() const { return m_classType == FontFaceSrcClass; } |
| 90 bool isFontVariationValue() const { | 90 bool isFontVariationValue() const { |
| 91 return m_classType == FontVariationClass; | 91 return m_classType == FontVariationClass; |
| 92 } | 92 } |
| 93 bool isFunctionValue() const { return m_classType == FunctionClass; } | 93 bool isFunctionValue() const { return m_classType == FunctionClass; } |
| 94 bool isCustomIdentValue() const { return m_classType == CustomIdentClass; } | 94 bool isCustomIdentValue() const { return m_classType == CustomIdentClass; } |
| 95 bool isImageGeneratorValue() const { | 95 bool isImageGeneratorValue() const { |
| 96 return m_classType >= CrossfadeClass && m_classType <= RadialGradientClass; | 96 return m_classType >= CrossfadeClass && m_classType <= ConicGradientClass; |
| 97 } | 97 } |
| 98 bool isGradientValue() const { | 98 bool isGradientValue() const { |
| 99 return m_classType >= LinearGradientClass && | 99 return m_classType >= LinearGradientClass && |
| 100 m_classType <= RadialGradientClass; | 100 m_classType <= ConicGradientClass; |
| 101 } | 101 } |
| 102 bool isImageSetValue() const { return m_classType == ImageSetClass; } | 102 bool isImageSetValue() const { return m_classType == ImageSetClass; } |
| 103 bool isImageValue() const { return m_classType == ImageClass; } | 103 bool isImageValue() const { return m_classType == ImageClass; } |
| 104 bool isInheritedValue() const { return m_classType == InheritedClass; } | 104 bool isInheritedValue() const { return m_classType == InheritedClass; } |
| 105 bool isInitialValue() const { return m_classType == InitialClass; } | 105 bool isInitialValue() const { return m_classType == InitialClass; } |
| 106 bool isUnsetValue() const { return m_classType == UnsetClass; } | 106 bool isUnsetValue() const { return m_classType == UnsetClass; } |
| 107 bool isCSSWideKeyword() const { | 107 bool isCSSWideKeyword() const { |
| 108 return m_classType >= InheritedClass && m_classType <= UnsetClass; | 108 return m_classType >= InheritedClass && m_classType <= UnsetClass; |
| 109 } | 109 } |
| 110 bool isLinearGradientValue() const { | 110 bool isLinearGradientValue() const { |
| 111 return m_classType == LinearGradientClass; | 111 return m_classType == LinearGradientClass; |
| 112 } | 112 } |
| 113 bool isPathValue() const { return m_classType == PathClass; } | 113 bool isPathValue() const { return m_classType == PathClass; } |
| 114 bool isQuadValue() const { return m_classType == QuadClass; } | 114 bool isQuadValue() const { return m_classType == QuadClass; } |
| 115 bool isRadialGradientValue() const { | 115 bool isRadialGradientValue() const { |
| 116 return m_classType == RadialGradientClass; | 116 return m_classType == RadialGradientClass; |
| 117 } | 117 } |
| 118 bool isConicGradientValue() const { |
| 119 return m_classType == ConicGradientClass; |
| 120 } |
| 118 bool isReflectValue() const { return m_classType == ReflectClass; } | 121 bool isReflectValue() const { return m_classType == ReflectClass; } |
| 119 bool isShadowValue() const { return m_classType == ShadowClass; } | 122 bool isShadowValue() const { return m_classType == ShadowClass; } |
| 120 bool isStringValue() const { return m_classType == StringClass; } | 123 bool isStringValue() const { return m_classType == StringClass; } |
| 121 bool isURIValue() const { return m_classType == URIClass; } | 124 bool isURIValue() const { return m_classType == URIClass; } |
| 122 bool isCubicBezierTimingFunctionValue() const { | 125 bool isCubicBezierTimingFunctionValue() const { |
| 123 return m_classType == CubicBezierTimingFunctionClass; | 126 return m_classType == CubicBezierTimingFunctionClass; |
| 124 } | 127 } |
| 125 bool isStepsTimingFunctionValue() const { | 128 bool isStepsTimingFunctionValue() const { |
| 126 return m_classType == StepsTimingFunctionClass; | 129 return m_classType == StepsTimingFunctionClass; |
| 127 } | 130 } |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 | 189 |
| 187 // Image classes. | 190 // Image classes. |
| 188 ImageClass, | 191 ImageClass, |
| 189 CursorImageClass, | 192 CursorImageClass, |
| 190 | 193 |
| 191 // Image generator classes. | 194 // Image generator classes. |
| 192 CrossfadeClass, | 195 CrossfadeClass, |
| 193 PaintClass, | 196 PaintClass, |
| 194 LinearGradientClass, | 197 LinearGradientClass, |
| 195 RadialGradientClass, | 198 RadialGradientClass, |
| 199 ConicGradientClass, |
| 196 | 200 |
| 197 // Timing function classes. | 201 // Timing function classes. |
| 198 CubicBezierTimingFunctionClass, | 202 CubicBezierTimingFunctionClass, |
| 199 StepsTimingFunctionClass, | 203 StepsTimingFunctionClass, |
| 200 | 204 |
| 201 // Other class types. | 205 // Other class types. |
| 202 BorderImageSliceClass, | 206 BorderImageSliceClass, |
| 203 FontFeatureClass, | 207 FontFeatureClass, |
| 204 FontFaceSrcClass, | 208 FontFaceSrcClass, |
| 205 FontFamilyClass, | 209 FontFamilyClass, |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 return true; | 278 return true; |
| 275 } | 279 } |
| 276 | 280 |
| 277 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ | 281 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ |
| 278 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, \ | 282 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, \ |
| 279 value.predicate) | 283 value.predicate) |
| 280 | 284 |
| 281 } // namespace blink | 285 } // namespace blink |
| 282 | 286 |
| 283 #endif // CSSValue_h | 287 #endif // CSSValue_h |
| OLD | NEW |