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