| 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 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 >= CrossfadeClass &&
m_classType <= RadialGradientClass; } | 85 bool isImageGeneratorValue() const { return m_classType >= CrossfadeClass &&
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; } |
| 88 bool isImageSetValue() const { return m_classType == ImageSetClass; } | 87 bool isImageSetValue() const { return m_classType == ImageSetClass; } |
| 89 bool isImageValue() const { return m_classType == ImageClass; } | 88 bool isImageValue() const { return m_classType == ImageClass; } |
| 90 bool isImplicitInitialValue() const; | 89 bool isImplicitInitialValue() const; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 113 bool equals(const CSSValue&) const; | 112 bool equals(const CSSValue&) const; |
| 114 | 113 |
| 115 protected: | 114 protected: |
| 116 | 115 |
| 117 static const size_t ClassTypeBits = 6; | 116 static const size_t ClassTypeBits = 6; |
| 118 enum ClassType { | 117 enum ClassType { |
| 119 PrimitiveClass, | 118 PrimitiveClass, |
| 120 | 119 |
| 121 // Image classes. | 120 // Image classes. |
| 122 ImageClass, | 121 ImageClass, |
| 123 CursorImageClass, | |
| 124 | 122 |
| 125 // Image generator classes. | 123 // Image generator classes. |
| 126 CrossfadeClass, | 124 CrossfadeClass, |
| 127 LinearGradientClass, | 125 LinearGradientClass, |
| 128 RadialGradientClass, | 126 RadialGradientClass, |
| 129 | 127 |
| 130 // Timing function classes. | 128 // Timing function classes. |
| 131 CubicBezierTimingFunctionClass, | 129 CubicBezierTimingFunctionClass, |
| 132 StepsTimingFunctionClass, | 130 StepsTimingFunctionClass, |
| 133 | 131 |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 { | 226 { |
| 229 return first ? second && first->equals(*second) : !second; | 227 return first ? second && first->equals(*second) : !second; |
| 230 } | 228 } |
| 231 | 229 |
| 232 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ | 230 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ |
| 233 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, value.predica
te) | 231 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, value.predica
te) |
| 234 | 232 |
| 235 } // namespace blink | 233 } // namespace blink |
| 236 | 234 |
| 237 #endif // SKY_ENGINE_CORE_CSS_CSSVALUE_H_ | 235 #endif // SKY_ENGINE_CORE_CSS_CSSVALUE_H_ |
| OLD | NEW |