| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 bool isFontFeatureValue() const { return m_classType == FontFeatureClass; } | 70 bool isFontFeatureValue() const { return m_classType == FontFeatureClass; } |
| 71 bool isFontValue() const { return m_classType == FontClass; } | 71 bool isFontValue() const { return m_classType == FontClass; } |
| 72 bool isFontFaceSrcValue() const { return m_classType == FontFaceSrcClass; } | 72 bool isFontFaceSrcValue() const { return m_classType == FontFaceSrcClass; } |
| 73 bool isFunctionValue() const { return m_classType == FunctionClass; } | 73 bool isFunctionValue() const { return m_classType == FunctionClass; } |
| 74 bool isImageGeneratorValue() const { return m_classType >= CanvasClass && m_
classType <= RadialGradientClass; } | 74 bool isImageGeneratorValue() const { return m_classType >= CanvasClass && m_
classType <= RadialGradientClass; } |
| 75 bool isGradientValue() const { return m_classType >= LinearGradientClass &&
m_classType <= RadialGradientClass; } | 75 bool isGradientValue() const { return m_classType >= LinearGradientClass &&
m_classType <= RadialGradientClass; } |
| 76 bool isImageSetValue() const { return m_classType == ImageSetClass; } | 76 bool isImageSetValue() const { return m_classType == ImageSetClass; } |
| 77 bool isImageValue() const { return m_classType == ImageClass; } | 77 bool isImageValue() const { return m_classType == ImageClass; } |
| 78 bool isImplicitInitialValue() const; | 78 bool isImplicitInitialValue() const; |
| 79 bool isInheritedValue() const { return m_classType == InheritedClass; } | 79 bool isInheritedValue() const { return m_classType == InheritedClass; } |
| 80 bool isInitialValue() const { return m_classType == InitialClass; } |
| 80 bool isUnsetValue() const { return m_classType == UnsetClass; } | 81 bool isUnsetValue() const { return m_classType == UnsetClass; } |
| 81 bool isInitialValue() const { return m_classType == InitialClass; } | 82 bool isCSSWideKeyword() const { return m_classType >= InheritedClass && m_cl
assType <= UnsetClass; } |
| 82 bool isLinearGradientValue() const { return m_classType == LinearGradientCla
ss; } | 83 bool isLinearGradientValue() const { return m_classType == LinearGradientCla
ss; } |
| 83 bool isPathValue() const { return m_classType == PathClass; } | 84 bool isPathValue() const { return m_classType == PathClass; } |
| 84 bool isRadialGradientValue() const { return m_classType == RadialGradientCla
ss; } | 85 bool isRadialGradientValue() const { return m_classType == RadialGradientCla
ss; } |
| 85 bool isReflectValue() const { return m_classType == ReflectClass; } | 86 bool isReflectValue() const { return m_classType == ReflectClass; } |
| 86 bool isShadowValue() const { return m_classType == ShadowClass; } | 87 bool isShadowValue() const { return m_classType == ShadowClass; } |
| 87 bool isCubicBezierTimingFunctionValue() const { return m_classType == CubicB
ezierTimingFunctionClass; } | 88 bool isCubicBezierTimingFunctionValue() const { return m_classType == CubicB
ezierTimingFunctionClass; } |
| 88 bool isStepsTimingFunctionValue() const { return m_classType == StepsTimingF
unctionClass; } | 89 bool isStepsTimingFunctionValue() const { return m_classType == StepsTimingF
unctionClass; } |
| 89 bool isLineBoxContainValue() const { return m_classType == LineBoxContainCla
ss; } | 90 bool isLineBoxContainValue() const { return m_classType == LineBoxContainCla
ss; } |
| 90 bool isCalcValue() const {return m_classType == CalculationClass; } | 91 bool isCalcValue() const {return m_classType == CalculationClass; } |
| 91 bool isGridTemplateAreasValue() const { return m_classType == GridTemplateAr
easClass; } | 92 bool isGridTemplateAreasValue() const { return m_classType == GridTemplateAr
easClass; } |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 { | 233 { |
| 233 return first ? second && first->equals(*second) : !second; | 234 return first ? second && first->equals(*second) : !second; |
| 234 } | 235 } |
| 235 | 236 |
| 236 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ | 237 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ |
| 237 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, value.predica
te) | 238 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, value.predica
te) |
| 238 | 239 |
| 239 } // namespace blink | 240 } // namespace blink |
| 240 | 241 |
| 241 #endif // CSSValue_h | 242 #endif // CSSValue_h |
| OLD | NEW |