| 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 bool isInheritedValue() const { return m_classType == InheritedClass; } | 80 bool isInheritedValue() const { return m_classType == InheritedClass; } |
| 81 bool isInitialValue() const { return m_classType == InitialClass; } | 81 bool isInitialValue() const { return m_classType == InitialClass; } |
| 82 bool isUnsetValue() const { return m_classType == UnsetClass; } | 82 bool isUnsetValue() const { return m_classType == UnsetClass; } |
| 83 bool isCSSWideKeyword() const { return m_classType >= InheritedClass && m_cl
assType <= UnsetClass; } | 83 bool isCSSWideKeyword() const { return m_classType >= InheritedClass && m_cl
assType <= UnsetClass; } |
| 84 bool isLinearGradientValue() const { return m_classType == LinearGradientCla
ss; } | 84 bool isLinearGradientValue() const { return m_classType == LinearGradientCla
ss; } |
| 85 bool isPathValue() const { return m_classType == PathClass; } | 85 bool isPathValue() const { return m_classType == PathClass; } |
| 86 bool isQuadValue() const { return m_classType == QuadClass; } | 86 bool isQuadValue() const { return m_classType == QuadClass; } |
| 87 bool isRadialGradientValue() const { return m_classType == RadialGradientCla
ss; } | 87 bool isRadialGradientValue() const { return m_classType == RadialGradientCla
ss; } |
| 88 bool isReflectValue() const { return m_classType == ReflectClass; } | 88 bool isReflectValue() const { return m_classType == ReflectClass; } |
| 89 bool isShadowValue() const { return m_classType == ShadowClass; } | 89 bool isShadowValue() const { return m_classType == ShadowClass; } |
| 90 bool isStringValue() const { return m_classType == StringClass; } |
| 90 bool isCubicBezierTimingFunctionValue() const { return m_classType == CubicB
ezierTimingFunctionClass; } | 91 bool isCubicBezierTimingFunctionValue() const { return m_classType == CubicB
ezierTimingFunctionClass; } |
| 91 bool isStepsTimingFunctionValue() const { return m_classType == StepsTimingF
unctionClass; } | 92 bool isStepsTimingFunctionValue() const { return m_classType == StepsTimingF
unctionClass; } |
| 92 bool isLineBoxContainValue() const { return m_classType == LineBoxContainCla
ss; } | 93 bool isLineBoxContainValue() const { return m_classType == LineBoxContainCla
ss; } |
| 93 bool isGridTemplateAreasValue() const { return m_classType == GridTemplateAr
easClass; } | 94 bool isGridTemplateAreasValue() const { return m_classType == GridTemplateAr
easClass; } |
| 94 bool isSVGDocumentValue() const { return m_classType == CSSSVGDocumentClass;
} | 95 bool isSVGDocumentValue() const { return m_classType == CSSSVGDocumentClass;
} |
| 95 bool isContentDistributionValue() const { return m_classType == CSSContentDi
stributionClass; } | 96 bool isContentDistributionValue() const { return m_classType == CSSContentDi
stributionClass; } |
| 96 bool isUnicodeRangeValue() const { return m_classType == UnicodeRangeClass;
} | 97 bool isUnicodeRangeValue() const { return m_classType == UnicodeRangeClass;
} |
| 97 bool isGridLineNamesValue() const { return m_classType == GridLineNamesClass
; } | 98 bool isGridLineNamesValue() const { return m_classType == GridLineNamesClass
; } |
| 98 | 99 |
| 99 bool hasFailedOrCanceledSubresources() const; | 100 bool hasFailedOrCanceledSubresources() const; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 110 // 'source\wtf\refcounted.h' by using msvc. | 111 // 'source\wtf\refcounted.h' by using msvc. |
| 111 ~CSSValue() { } | 112 ~CSSValue() { } |
| 112 | 113 |
| 113 protected: | 114 protected: |
| 114 | 115 |
| 115 static const size_t ClassTypeBits = 6; | 116 static const size_t ClassTypeBits = 6; |
| 116 enum ClassType { | 117 enum ClassType { |
| 117 PrimitiveClass, | 118 PrimitiveClass, |
| 118 CounterClass, | 119 CounterClass, |
| 119 QuadClass, | 120 QuadClass, |
| 121 StringClass, |
| 120 ValuePairClass, | 122 ValuePairClass, |
| 121 | 123 |
| 122 // Image classes. | 124 // Image classes. |
| 123 ImageClass, | 125 ImageClass, |
| 124 CursorImageClass, | 126 CursorImageClass, |
| 125 | 127 |
| 126 // Image generator classes. | 128 // Image generator classes. |
| 127 CanvasClass, | 129 CanvasClass, |
| 128 CrossfadeClass, | 130 CrossfadeClass, |
| 129 LinearGradientClass, | 131 LinearGradientClass, |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 return false; | 249 return false; |
| 248 return first->equals(*second); | 250 return first->equals(*second); |
| 249 } | 251 } |
| 250 | 252 |
| 251 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ | 253 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ |
| 252 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, value.predica
te) | 254 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, value.predica
te) |
| 253 | 255 |
| 254 } // namespace blink | 256 } // namespace blink |
| 255 | 257 |
| 256 #endif // CSSValue_h | 258 #endif // CSSValue_h |
| OLD | NEW |