| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 String cssText() const; | 70 String cssText() const; |
| 71 void setCSSText(const String&, ExceptionState&) { } // FIXME: Not implemente
d. | 71 void setCSSText(const String&, ExceptionState&) { } // FIXME: Not implemente
d. |
| 72 | 72 |
| 73 bool isPrimitiveValue() const { return m_classType == PrimitiveClass; } | 73 bool isPrimitiveValue() const { return m_classType == PrimitiveClass; } |
| 74 bool isValueList() const { return m_classType >= ValueListClass; } | 74 bool isValueList() const { return m_classType >= ValueListClass; } |
| 75 | 75 |
| 76 bool isBaseValueList() const { return m_classType == ValueListClass; } | 76 bool isBaseValueList() const { return m_classType == ValueListClass; } |
| 77 | 77 |
| 78 bool isAspectRatioValue() const { return m_classType == AspectRatioClass; } | 78 bool isAspectRatioValue() const { return m_classType == AspectRatioClass; } |
| 79 bool isBorderImageSliceValue() const { return m_classType == BorderImageSlic
eClass; } | 79 bool isBorderImageSliceValue() const { return m_classType == BorderImageSlic
eClass; } |
| 80 bool isCanvasValue() const { return m_classType == CanvasClass; } | |
| 81 bool isCursorImageValue() const { return m_classType == CursorImageClass; } | 80 bool isCursorImageValue() const { return m_classType == CursorImageClass; } |
| 82 bool isCrossfadeValue() const { return m_classType == CrossfadeClass; } | 81 bool isCrossfadeValue() const { return m_classType == CrossfadeClass; } |
| 83 bool isFontFeatureValue() const { return m_classType == FontFeatureClass; } | 82 bool isFontFeatureValue() const { return m_classType == FontFeatureClass; } |
| 84 bool isFontValue() const { return m_classType == FontClass; } | 83 bool isFontValue() const { return m_classType == FontClass; } |
| 85 bool isFontFaceSrcValue() const { return m_classType == FontFaceSrcClass; } | 84 bool isFontFaceSrcValue() const { return m_classType == FontFaceSrcClass; } |
| 86 bool isFunctionValue() const { return m_classType == FunctionClass; } | 85 bool isFunctionValue() const { return m_classType == FunctionClass; } |
| 87 bool isImageGeneratorValue() const { return m_classType >= CanvasClass && m_
classType <= RadialGradientClass; } | 86 bool isImageGeneratorValue() const { return m_classType >= CrossfadeClass &&
m_classType <= RadialGradientClass; } |
| 88 bool isGradientValue() const { return m_classType >= LinearGradientClass &&
m_classType <= RadialGradientClass; } | 87 bool isGradientValue() const { return m_classType >= LinearGradientClass &&
m_classType <= RadialGradientClass; } |
| 89 bool isImageSetValue() const { return m_classType == ImageSetClass; } | 88 bool isImageSetValue() const { return m_classType == ImageSetClass; } |
| 90 bool isImageValue() const { return m_classType == ImageClass; } | 89 bool isImageValue() const { return m_classType == ImageClass; } |
| 91 bool isImplicitInitialValue() const; | 90 bool isImplicitInitialValue() const; |
| 92 bool isInheritedValue() const { return m_classType == InheritedClass; } | 91 bool isInheritedValue() const { return m_classType == InheritedClass; } |
| 93 bool isInitialValue() const { return m_classType == InitialClass; } | 92 bool isInitialValue() const { return m_classType == InitialClass; } |
| 94 bool isLinearGradientValue() const { return m_classType == LinearGradientCla
ss; } | 93 bool isLinearGradientValue() const { return m_classType == LinearGradientCla
ss; } |
| 95 bool isRadialGradientValue() const { return m_classType == RadialGradientCla
ss; } | 94 bool isRadialGradientValue() const { return m_classType == RadialGradientCla
ss; } |
| 96 bool isShadowValue() const { return m_classType == ShadowClass; } | 95 bool isShadowValue() const { return m_classType == ShadowClass; } |
| 97 bool isTextCloneCSSValue() const { return m_isTextClone; } | 96 bool isTextCloneCSSValue() const { return m_isTextClone; } |
| (...skipping 19 matching lines...) Expand all Loading... |
| 117 | 116 |
| 118 static const size_t ClassTypeBits = 6; | 117 static const size_t ClassTypeBits = 6; |
| 119 enum ClassType { | 118 enum ClassType { |
| 120 PrimitiveClass, | 119 PrimitiveClass, |
| 121 | 120 |
| 122 // Image classes. | 121 // Image classes. |
| 123 ImageClass, | 122 ImageClass, |
| 124 CursorImageClass, | 123 CursorImageClass, |
| 125 | 124 |
| 126 // Image generator classes. | 125 // Image generator classes. |
| 127 CanvasClass, | |
| 128 CrossfadeClass, | 126 CrossfadeClass, |
| 129 LinearGradientClass, | 127 LinearGradientClass, |
| 130 RadialGradientClass, | 128 RadialGradientClass, |
| 131 | 129 |
| 132 // Timing function classes. | 130 // Timing function classes. |
| 133 CubicBezierTimingFunctionClass, | 131 CubicBezierTimingFunctionClass, |
| 134 StepsTimingFunctionClass, | 132 StepsTimingFunctionClass, |
| 135 | 133 |
| 136 // Other class types. | 134 // Other class types. |
| 137 AspectRatioClass, | 135 AspectRatioClass, |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 { | 228 { |
| 231 return first ? second && first->equals(*second) : !second; | 229 return first ? second && first->equals(*second) : !second; |
| 232 } | 230 } |
| 233 | 231 |
| 234 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ | 232 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ |
| 235 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, value.predica
te) | 233 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, value.predica
te) |
| 236 | 234 |
| 237 } // namespace blink | 235 } // namespace blink |
| 238 | 236 |
| 239 #endif // SKY_ENGINE_CORE_CSS_CSSVALUE_H_ | 237 #endif // SKY_ENGINE_CORE_CSS_CSSVALUE_H_ |
| OLD | NEW |