| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 Type cssValueType() const; | 67 Type cssValueType() const; |
| 68 | 68 |
| 69 String cssText() const; | 69 String cssText() const; |
| 70 void setCSSText(const String&, ExceptionState&) { } // FIXME: Not implemente
d. | 70 void setCSSText(const String&, ExceptionState&) { } // FIXME: Not implemente
d. |
| 71 | 71 |
| 72 bool isPrimitiveValue() const { return m_classType == PrimitiveClass; } | 72 bool isPrimitiveValue() const { return m_classType == PrimitiveClass; } |
| 73 bool isValueList() const { return m_classType >= ValueListClass; } | 73 bool isValueList() const { return m_classType >= ValueListClass; } |
| 74 | 74 |
| 75 bool isBaseValueList() const { return m_classType == ValueListClass; } | 75 bool isBaseValueList() const { return m_classType == ValueListClass; } |
| 76 | 76 |
| 77 bool isAspectRatioValue() const { return m_classType == AspectRatioClass; } | |
| 78 bool isBorderImageSliceValue() const { return m_classType == BorderImageSlic
eClass; } | 77 bool isBorderImageSliceValue() const { return m_classType == BorderImageSlic
eClass; } |
| 79 bool isCanvasValue() const { return m_classType == CanvasClass; } | 78 bool isCanvasValue() const { return m_classType == CanvasClass; } |
| 80 bool isCursorImageValue() const { return m_classType == CursorImageClass; } | 79 bool isCursorImageValue() const { return m_classType == CursorImageClass; } |
| 81 bool isCrossfadeValue() const { return m_classType == CrossfadeClass; } | 80 bool isCrossfadeValue() const { return m_classType == CrossfadeClass; } |
| 82 bool isFontFeatureValue() const { return m_classType == FontFeatureClass; } | 81 bool isFontFeatureValue() const { return m_classType == FontFeatureClass; } |
| 83 bool isFontValue() const { return m_classType == FontClass; } | 82 bool isFontValue() const { return m_classType == FontClass; } |
| 84 bool isFontFaceSrcValue() const { return m_classType == FontFaceSrcClass; } | 83 bool isFontFaceSrcValue() const { return m_classType == FontFaceSrcClass; } |
| 85 bool isFunctionValue() const { return m_classType == FunctionClass; } | 84 bool isFunctionValue() const { return m_classType == FunctionClass; } |
| 86 bool isImageGeneratorValue() const { return m_classType >= CanvasClass && m_
classType <= RadialGradientClass; } | 85 bool isImageGeneratorValue() const { return m_classType >= CanvasClass && m_
classType <= RadialGradientClass; } |
| 87 bool isGradientValue() const { return m_classType >= LinearGradientClass &&
m_classType <= RadialGradientClass; } | 86 bool isGradientValue() const { return m_classType >= LinearGradientClass &&
m_classType <= RadialGradientClass; } |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 CanvasClass, | 135 CanvasClass, |
| 137 CrossfadeClass, | 136 CrossfadeClass, |
| 138 LinearGradientClass, | 137 LinearGradientClass, |
| 139 RadialGradientClass, | 138 RadialGradientClass, |
| 140 | 139 |
| 141 // Timing function classes. | 140 // Timing function classes. |
| 142 CubicBezierTimingFunctionClass, | 141 CubicBezierTimingFunctionClass, |
| 143 StepsTimingFunctionClass, | 142 StepsTimingFunctionClass, |
| 144 | 143 |
| 145 // Other class types. | 144 // Other class types. |
| 146 AspectRatioClass, | |
| 147 BorderImageSliceClass, | 145 BorderImageSliceClass, |
| 148 FontFeatureClass, | 146 FontFeatureClass, |
| 149 FontClass, | 147 FontClass, |
| 150 FontFaceSrcClass, | 148 FontFaceSrcClass, |
| 151 FunctionClass, | 149 FunctionClass, |
| 152 | 150 |
| 153 InheritedClass, | 151 InheritedClass, |
| 154 InitialClass, | 152 InitialClass, |
| 155 | 153 |
| 156 ReflectClass, | 154 ReflectClass, |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 { | 249 { |
| 252 return first ? second && first->equals(*second) : !second; | 250 return first ? second && first->equals(*second) : !second; |
| 253 } | 251 } |
| 254 | 252 |
| 255 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ | 253 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ |
| 256 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, value.predica
te) | 254 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, value.predica
te) |
| 257 | 255 |
| 258 } // namespace blink | 256 } // namespace blink |
| 259 | 257 |
| 260 #endif // CSSValue_h | 258 #endif // CSSValue_h |
| OLD | NEW |