| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 bool isFontFeatureValue() const { return m_classType == FontFeatureClass; } | 60 bool isFontFeatureValue() const { return m_classType == FontFeatureClass; } |
| 61 bool isFontValue() const { return m_classType == FontClass; } | 61 bool isFontValue() const { return m_classType == FontClass; } |
| 62 bool isFontFaceSrcValue() const { return m_classType == FontFaceSrcClass; } | 62 bool isFontFaceSrcValue() const { return m_classType == FontFaceSrcClass; } |
| 63 bool isFunctionValue() const { return m_classType == FunctionClass; } | 63 bool isFunctionValue() const { return m_classType == FunctionClass; } |
| 64 bool isImageGeneratorValue() const { return m_classType >= CanvasClass && m_
classType <= RadialGradientClass; } | 64 bool isImageGeneratorValue() const { return m_classType >= CanvasClass && m_
classType <= RadialGradientClass; } |
| 65 bool isGradientValue() const { return m_classType >= LinearGradientClass &&
m_classType <= RadialGradientClass; } | 65 bool isGradientValue() const { return m_classType >= LinearGradientClass &&
m_classType <= RadialGradientClass; } |
| 66 bool isImageSetValue() const { return m_classType == ImageSetClass; } | 66 bool isImageSetValue() const { return m_classType == ImageSetClass; } |
| 67 bool isImageValue() const { return m_classType == ImageClass; } | 67 bool isImageValue() const { return m_classType == ImageClass; } |
| 68 bool isImplicitInitialValue() const; | 68 bool isImplicitInitialValue() const; |
| 69 bool isInheritedValue() const { return m_classType == InheritedClass; } | 69 bool isInheritedValue() const { return m_classType == InheritedClass; } |
| 70 bool isUnsetValue() const { return m_classType == UnsetClass; } | |
| 71 bool isInitialValue() const { return m_classType == InitialClass; } | 70 bool isInitialValue() const { return m_classType == InitialClass; } |
| 72 bool isLinearGradientValue() const { return m_classType == LinearGradientCla
ss; } | 71 bool isLinearGradientValue() const { return m_classType == LinearGradientCla
ss; } |
| 73 bool isRadialGradientValue() const { return m_classType == RadialGradientCla
ss; } | 72 bool isRadialGradientValue() const { return m_classType == RadialGradientCla
ss; } |
| 74 bool isReflectValue() const { return m_classType == ReflectClass; } | 73 bool isReflectValue() const { return m_classType == ReflectClass; } |
| 75 bool isShadowValue() const { return m_classType == ShadowClass; } | 74 bool isShadowValue() const { return m_classType == ShadowClass; } |
| 76 bool isCubicBezierTimingFunctionValue() const { return m_classType == CubicB
ezierTimingFunctionClass; } | 75 bool isCubicBezierTimingFunctionValue() const { return m_classType == CubicB
ezierTimingFunctionClass; } |
| 77 bool isStepsTimingFunctionValue() const { return m_classType == StepsTimingF
unctionClass; } | 76 bool isStepsTimingFunctionValue() const { return m_classType == StepsTimingF
unctionClass; } |
| 78 bool isTransformValue() const { return m_classType == CSSTransformClass; } | 77 bool isTransformValue() const { return m_classType == CSSTransformClass; } |
| 79 bool isLineBoxContainValue() const { return m_classType == LineBoxContainCla
ss; } | 78 bool isLineBoxContainValue() const { return m_classType == LineBoxContainCla
ss; } |
| 80 bool isCalcValue() const {return m_classType == CalculationClass; } | 79 bool isCalcValue() const {return m_classType == CalculationClass; } |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 | 114 |
| 116 // Other class types. | 115 // Other class types. |
| 117 BorderImageSliceClass, | 116 BorderImageSliceClass, |
| 118 FontFeatureClass, | 117 FontFeatureClass, |
| 119 FontClass, | 118 FontClass, |
| 120 FontFaceSrcClass, | 119 FontFaceSrcClass, |
| 121 FunctionClass, | 120 FunctionClass, |
| 122 | 121 |
| 123 InheritedClass, | 122 InheritedClass, |
| 124 InitialClass, | 123 InitialClass, |
| 125 UnsetClass, | |
| 126 | 124 |
| 127 ReflectClass, | 125 ReflectClass, |
| 128 ShadowClass, | 126 ShadowClass, |
| 129 UnicodeRangeClass, | 127 UnicodeRangeClass, |
| 130 LineBoxContainClass, | 128 LineBoxContainClass, |
| 131 CalculationClass, | 129 CalculationClass, |
| 132 GridTemplateAreasClass, | 130 GridTemplateAreasClass, |
| 133 | 131 |
| 134 // SVG classes. | 132 // SVG classes. |
| 135 CSSSVGDocumentClass, | 133 CSSSVGDocumentClass, |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 { | 220 { |
| 223 return first ? second && first->equals(*second) : !second; | 221 return first ? second && first->equals(*second) : !second; |
| 224 } | 222 } |
| 225 | 223 |
| 226 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ | 224 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ |
| 227 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, value.predica
te) | 225 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, value.predica
te) |
| 228 | 226 |
| 229 } // namespace blink | 227 } // namespace blink |
| 230 | 228 |
| 231 #endif // CSSValue_h | 229 #endif // CSSValue_h |
| OLD | NEW |