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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 bool isBasicShapeCircleValue() const { return m_classType == BasicShapeCircl
eClass; } | 71 bool isBasicShapeCircleValue() const { return m_classType == BasicShapeCircl
eClass; } |
72 bool isBasicShapeEllipseValue() const { return m_classType == BasicShapeElli
pseClass; } | 72 bool isBasicShapeEllipseValue() const { return m_classType == BasicShapeElli
pseClass; } |
73 bool isBasicShapePolygonValue() const { return m_classType == BasicShapePoly
gonClass; } | 73 bool isBasicShapePolygonValue() const { return m_classType == BasicShapePoly
gonClass; } |
74 bool isBasicShapeInsetValue() const { return m_classType == BasicShapeInsetC
lass; } | 74 bool isBasicShapeInsetValue() const { return m_classType == BasicShapeInsetC
lass; } |
75 | 75 |
76 bool isBorderImageSliceValue() const { return m_classType == BorderImageSlic
eClass; } | 76 bool isBorderImageSliceValue() const { return m_classType == BorderImageSlic
eClass; } |
77 bool isColorValue() const { return m_classType == ColorClass; } | 77 bool isColorValue() const { return m_classType == ColorClass; } |
78 bool isCounterValue() const { return m_classType == CounterClass; } | 78 bool isCounterValue() const { return m_classType == CounterClass; } |
79 bool isCursorImageValue() const { return m_classType == CursorImageClass; } | 79 bool isCursorImageValue() const { return m_classType == CursorImageClass; } |
80 bool isCrossfadeValue() const { return m_classType == CrossfadeClass; } | 80 bool isCrossfadeValue() const { return m_classType == CrossfadeClass; } |
| 81 bool isPaintValue() const { return m_classType == PaintClass; } |
81 bool isFontFeatureValue() const { return m_classType == FontFeatureClass; } | 82 bool isFontFeatureValue() const { return m_classType == FontFeatureClass; } |
82 bool isFontFaceSrcValue() const { return m_classType == FontFaceSrcClass; } | 83 bool isFontFaceSrcValue() const { return m_classType == FontFaceSrcClass; } |
83 bool isFunctionValue() const { return m_classType == FunctionClass; } | 84 bool isFunctionValue() const { return m_classType == FunctionClass; } |
84 bool isCustomIdentValue() const { return m_classType == CustomIdentClass; } | 85 bool isCustomIdentValue() const { return m_classType == CustomIdentClass; } |
85 bool isImageGeneratorValue() const { return m_classType >= CrossfadeClass &&
m_classType <= RadialGradientClass; } | 86 bool isImageGeneratorValue() const { return m_classType >= CrossfadeClass &&
m_classType <= RadialGradientClass; } |
86 bool isGradientValue() const { return m_classType >= LinearGradientClass &&
m_classType <= RadialGradientClass; } | 87 bool isGradientValue() const { return m_classType >= LinearGradientClass &&
m_classType <= RadialGradientClass; } |
87 bool isImageSetValue() const { return m_classType == ImageSetClass; } | 88 bool isImageSetValue() const { return m_classType == ImageSetClass; } |
88 bool isImageValue() const { return m_classType == ImageClass; } | 89 bool isImageValue() const { return m_classType == ImageClass; } |
89 bool isImplicitInitialValue() const; | 90 bool isImplicitInitialValue() const; |
90 bool isInheritedValue() const { return m_classType == InheritedClass; } | 91 bool isInheritedValue() const { return m_classType == InheritedClass; } |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 BasicShapeEllipseClass, | 142 BasicShapeEllipseClass, |
142 BasicShapePolygonClass, | 143 BasicShapePolygonClass, |
143 BasicShapeInsetClass, | 144 BasicShapeInsetClass, |
144 | 145 |
145 // Image classes. | 146 // Image classes. |
146 ImageClass, | 147 ImageClass, |
147 CursorImageClass, | 148 CursorImageClass, |
148 | 149 |
149 // Image generator classes. | 150 // Image generator classes. |
150 CrossfadeClass, | 151 CrossfadeClass, |
| 152 PaintClass, |
151 LinearGradientClass, | 153 LinearGradientClass, |
152 RadialGradientClass, | 154 RadialGradientClass, |
153 | 155 |
154 // Timing function classes. | 156 // Timing function classes. |
155 CubicBezierTimingFunctionClass, | 157 CubicBezierTimingFunctionClass, |
156 StepsTimingFunctionClass, | 158 StepsTimingFunctionClass, |
157 | 159 |
158 // Other class types. | 160 // Other class types. |
159 BorderImageSliceClass, | 161 BorderImageSliceClass, |
160 FontFeatureClass, | 162 FontFeatureClass, |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 return false; | 270 return false; |
269 return first->equals(*second); | 271 return first->equals(*second); |
270 } | 272 } |
271 | 273 |
272 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ | 274 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ |
273 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, value.predica
te) | 275 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, value.predica
te) |
274 | 276 |
275 } // namespace blink | 277 } // namespace blink |
276 | 278 |
277 #endif // CSSValue_h | 279 #endif // CSSValue_h |
OLD | NEW |