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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 bool isGradientValue() const { return m_classType >= LinearGradientClass &&
m_classType <= RadialGradientClass; } | 82 bool isGradientValue() const { return m_classType >= LinearGradientClass &&
m_classType <= RadialGradientClass; } |
83 bool isImageSetValue() const { return m_classType == ImageSetClass; } | 83 bool isImageSetValue() const { return m_classType == ImageSetClass; } |
84 bool isImageValue() const { return m_classType == ImageClass; } | 84 bool isImageValue() const { return m_classType == ImageClass; } |
85 bool isImplicitInitialValue() const; | 85 bool isImplicitInitialValue() const; |
86 bool isInheritedValue() const { return m_classType == InheritedClass; } | 86 bool isInheritedValue() const { return m_classType == InheritedClass; } |
87 bool isInitialValue() const { return m_classType == InitialClass; } | 87 bool isInitialValue() const { return m_classType == InitialClass; } |
88 bool isLinearGradientValue() const { return m_classType == LinearGradientCla
ss; } | 88 bool isLinearGradientValue() const { return m_classType == LinearGradientCla
ss; } |
89 bool isRadialGradientValue() const { return m_classType == RadialGradientCla
ss; } | 89 bool isRadialGradientValue() const { return m_classType == RadialGradientCla
ss; } |
90 bool isReflectValue() const { return m_classType == ReflectClass; } | 90 bool isReflectValue() const { return m_classType == ReflectClass; } |
91 bool isShadowValue() const { return m_classType == ShadowClass; } | 91 bool isShadowValue() const { return m_classType == ShadowClass; } |
| 92 bool isTextCloneCSSValue() const { return m_isTextClone; } |
92 bool isCubicBezierTimingFunctionValue() const { return m_classType == CubicB
ezierTimingFunctionClass; } | 93 bool isCubicBezierTimingFunctionValue() const { return m_classType == CubicB
ezierTimingFunctionClass; } |
93 bool isStepsTimingFunctionValue() const { return m_classType == StepsTimingF
unctionClass; } | 94 bool isStepsTimingFunctionValue() const { return m_classType == StepsTimingF
unctionClass; } |
94 bool isTransformValue() const { return m_classType == CSSTransformClass; } | 95 bool isTransformValue() const { return m_classType == CSSTransformClass; } |
95 bool isLineBoxContainValue() const { return m_classType == LineBoxContainCla
ss; } | 96 bool isLineBoxContainValue() const { return m_classType == LineBoxContainCla
ss; } |
96 bool isCalcValue() const {return m_classType == CalculationClass; } | 97 bool isCalcValue() const {return m_classType == CalculationClass; } |
97 bool isFilterValue() const { return m_classType == CSSFilterClass; } | 98 bool isFilterValue() const { return m_classType == CSSFilterClass; } |
98 bool isArrayFunctionValue() const { return m_classType == CSSArrayFunctionVa
lueClass; } | 99 bool isArrayFunctionValue() const { return m_classType == CSSArrayFunctionVa
lueClass; } |
99 bool isMixFunctionValue() const { return m_classType == CSSMixFunctionValueC
lass; } | 100 bool isMixFunctionValue() const { return m_classType == CSSMixFunctionValueC
lass; } |
100 bool isShaderValue() const { return m_classType == CSSShaderClass; } | 101 bool isShaderValue() const { return m_classType == CSSShaderClass; } |
101 bool isVariableValue() const { return m_classType == VariableClass; } | 102 bool isVariableValue() const { return m_classType == VariableClass; } |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 { | 242 { |
242 return first ? second && first->equals(*second) : !second; | 243 return first ? second && first->equals(*second) : !second; |
243 } | 244 } |
244 | 245 |
245 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ | 246 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ |
246 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, value.predica
te) | 247 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, value.predica
te) |
247 | 248 |
248 } // namespace WebCore | 249 } // namespace WebCore |
249 | 250 |
250 #endif // CSSValue_h | 251 #endif // CSSValue_h |
OLD | NEW |