| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 isFontFeatureValue() const { return m_classType == FontFeatureClass; } | 80 bool isFontFeatureValue() const { return m_classType == FontFeatureClass; } |
| 81 bool isFontValue() const { return m_classType == FontClass; } | 81 bool isFontValue() const { return m_classType == FontClass; } |
| 82 bool isFontFaceSrcValue() const { return m_classType == FontFaceSrcClass; } | |
| 83 bool isFunctionValue() const { return m_classType == FunctionClass; } | 82 bool isFunctionValue() const { return m_classType == FunctionClass; } |
| 84 bool isImageGeneratorValue() const { return m_classType >= LinearGradientCla
ss && m_classType <= RadialGradientClass; } | 83 bool isImageGeneratorValue() const { return m_classType >= LinearGradientCla
ss && m_classType <= RadialGradientClass; } |
| 85 bool isGradientValue() const { return m_classType >= LinearGradientClass &&
m_classType <= RadialGradientClass; } | 84 bool isGradientValue() const { return m_classType >= LinearGradientClass &&
m_classType <= RadialGradientClass; } |
| 86 bool isImplicitInitialValue() const; | 85 bool isImplicitInitialValue() const; |
| 87 bool isInheritedValue() const { return m_classType == InheritedClass; } | 86 bool isInheritedValue() const { return m_classType == InheritedClass; } |
| 88 bool isInitialValue() const { return m_classType == InitialClass; } | 87 bool isInitialValue() const { return m_classType == InitialClass; } |
| 89 bool isLinearGradientValue() const { return m_classType == LinearGradientCla
ss; } | 88 bool isLinearGradientValue() const { return m_classType == LinearGradientCla
ss; } |
| 90 bool isRadialGradientValue() const { return m_classType == RadialGradientCla
ss; } | 89 bool isRadialGradientValue() const { return m_classType == RadialGradientCla
ss; } |
| 91 bool isShadowValue() const { return m_classType == ShadowClass; } | 90 bool isShadowValue() const { return m_classType == ShadowClass; } |
| 92 bool isTextCloneCSSValue() const { return m_isTextClone; } | 91 bool isTextCloneCSSValue() const { return m_isTextClone; } |
| (...skipping 27 matching lines...) Expand all Loading... |
| 120 | 119 |
| 121 // Timing function classes. | 120 // Timing function classes. |
| 122 CubicBezierTimingFunctionClass, | 121 CubicBezierTimingFunctionClass, |
| 123 StepsTimingFunctionClass, | 122 StepsTimingFunctionClass, |
| 124 | 123 |
| 125 // Other class types. | 124 // Other class types. |
| 126 AspectRatioClass, | 125 AspectRatioClass, |
| 127 BorderImageSliceClass, | 126 BorderImageSliceClass, |
| 128 FontFeatureClass, | 127 FontFeatureClass, |
| 129 FontClass, | 128 FontClass, |
| 130 FontFaceSrcClass, | |
| 131 FunctionClass, | 129 FunctionClass, |
| 132 | 130 |
| 133 InheritedClass, | 131 InheritedClass, |
| 134 InitialClass, | 132 InitialClass, |
| 135 | 133 |
| 136 ShadowClass, | 134 ShadowClass, |
| 137 UnicodeRangeClass, | 135 UnicodeRangeClass, |
| 138 LineBoxContainClass, | 136 LineBoxContainClass, |
| 139 CalculationClass, | 137 CalculationClass, |
| 140 | 138 |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 { | 216 { |
| 219 return first ? second && first->equals(*second) : !second; | 217 return first ? second && first->equals(*second) : !second; |
| 220 } | 218 } |
| 221 | 219 |
| 222 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ | 220 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ |
| 223 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, value.predica
te) | 221 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, value.predica
te) |
| 224 | 222 |
| 225 } // namespace blink | 223 } // namespace blink |
| 226 | 224 |
| 227 #endif // SKY_ENGINE_CORE_CSS_CSSVALUE_H_ | 225 #endif // SKY_ENGINE_CORE_CSS_CSSVALUE_H_ |
| OLD | NEW |