| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 bool isBaseValueList() const { return m_classType == ValueListClass; } | 65 bool isBaseValueList() const { return m_classType == ValueListClass; } |
| 66 | 66 |
| 67 bool isBorderImageSliceValue() const { return m_classType == BorderImageSlic
eClass; } | 67 bool isBorderImageSliceValue() const { return m_classType == BorderImageSlic
eClass; } |
| 68 bool isCanvasValue() const { return m_classType == CanvasClass; } | 68 bool isCanvasValue() const { return m_classType == CanvasClass; } |
| 69 bool isCounterValue() const { return m_classType == CounterClass; } | 69 bool isCounterValue() const { return m_classType == CounterClass; } |
| 70 bool isCursorImageValue() const { return m_classType == CursorImageClass; } | 70 bool isCursorImageValue() const { return m_classType == CursorImageClass; } |
| 71 bool isCrossfadeValue() const { return m_classType == CrossfadeClass; } | 71 bool isCrossfadeValue() const { return m_classType == CrossfadeClass; } |
| 72 bool isFontFeatureValue() const { return m_classType == FontFeatureClass; } | 72 bool isFontFeatureValue() const { return m_classType == FontFeatureClass; } |
| 73 bool isFontFaceSrcValue() const { return m_classType == FontFaceSrcClass; } | 73 bool isFontFaceSrcValue() const { return m_classType == FontFaceSrcClass; } |
| 74 bool isFunctionValue() const { return m_classType == FunctionClass; } | 74 bool isFunctionValue() const { return m_classType == FunctionClass; } |
| 75 bool isIdentValue() const { return m_classType == IdentClass; } |
| 75 bool isImageGeneratorValue() const { return m_classType >= CanvasClass && m_
classType <= RadialGradientClass; } | 76 bool isImageGeneratorValue() const { return m_classType >= CanvasClass && m_
classType <= RadialGradientClass; } |
| 76 bool isGradientValue() const { return m_classType >= LinearGradientClass &&
m_classType <= RadialGradientClass; } | 77 bool isGradientValue() const { return m_classType >= LinearGradientClass &&
m_classType <= RadialGradientClass; } |
| 77 bool isImageSetValue() const { return m_classType == ImageSetClass; } | 78 bool isImageSetValue() const { return m_classType == ImageSetClass; } |
| 78 bool isImageValue() const { return m_classType == ImageClass; } | 79 bool isImageValue() const { return m_classType == ImageClass; } |
| 79 bool isImplicitInitialValue() const; | 80 bool isImplicitInitialValue() const; |
| 80 bool isInheritedValue() const { return m_classType == InheritedClass; } | 81 bool isInheritedValue() const { return m_classType == InheritedClass; } |
| 81 bool isInitialValue() const { return m_classType == InitialClass; } | 82 bool isInitialValue() const { return m_classType == InitialClass; } |
| 82 bool isUnsetValue() const { return m_classType == UnsetClass; } | 83 bool isUnsetValue() const { return m_classType == UnsetClass; } |
| 83 bool isCSSWideKeyword() const { return m_classType >= InheritedClass && m_cl
assType <= UnsetClass; } | 84 bool isCSSWideKeyword() const { return m_classType >= InheritedClass && m_cl
assType <= UnsetClass; } |
| 84 bool isLinearGradientValue() const { return m_classType == LinearGradientCla
ss; } | 85 bool isLinearGradientValue() const { return m_classType == LinearGradientCla
ss; } |
| 85 bool isPathValue() const { return m_classType == PathClass; } | 86 bool isPathValue() const { return m_classType == PathClass; } |
| 86 bool isQuadValue() const { return m_classType == QuadClass; } | 87 bool isQuadValue() const { return m_classType == QuadClass; } |
| 87 bool isRadialGradientValue() const { return m_classType == RadialGradientCla
ss; } | 88 bool isRadialGradientValue() const { return m_classType == RadialGradientCla
ss; } |
| 88 bool isReflectValue() const { return m_classType == ReflectClass; } | 89 bool isReflectValue() const { return m_classType == ReflectClass; } |
| 89 bool isShadowValue() const { return m_classType == ShadowClass; } | 90 bool isShadowValue() const { return m_classType == ShadowClass; } |
| 91 bool isStringValue() const { return m_classType == StringClass; } |
| 92 bool isURIValue() const { return m_classType == URIClass; } |
| 90 bool isCubicBezierTimingFunctionValue() const { return m_classType == CubicB
ezierTimingFunctionClass; } | 93 bool isCubicBezierTimingFunctionValue() const { return m_classType == CubicB
ezierTimingFunctionClass; } |
| 91 bool isStepsTimingFunctionValue() const { return m_classType == StepsTimingF
unctionClass; } | 94 bool isStepsTimingFunctionValue() const { return m_classType == StepsTimingF
unctionClass; } |
| 92 bool isGridTemplateAreasValue() const { return m_classType == GridTemplateAr
easClass; } | 95 bool isGridTemplateAreasValue() const { return m_classType == GridTemplateAr
easClass; } |
| 93 bool isSVGDocumentValue() const { return m_classType == CSSSVGDocumentClass;
} | 96 bool isSVGDocumentValue() const { return m_classType == CSSSVGDocumentClass;
} |
| 94 bool isContentDistributionValue() const { return m_classType == CSSContentDi
stributionClass; } | 97 bool isContentDistributionValue() const { return m_classType == CSSContentDi
stributionClass; } |
| 95 bool isUnicodeRangeValue() const { return m_classType == UnicodeRangeClass;
} | 98 bool isUnicodeRangeValue() const { return m_classType == UnicodeRangeClass;
} |
| 96 bool isGridLineNamesValue() const { return m_classType == GridLineNamesClass
; } | 99 bool isGridLineNamesValue() const { return m_classType == GridLineNamesClass
; } |
| 97 | 100 |
| 98 bool hasFailedOrCanceledSubresources() const; | 101 bool hasFailedOrCanceledSubresources() const; |
| 99 | 102 |
| 100 bool equals(const CSSValue&) const; | 103 bool equals(const CSSValue&) const; |
| 101 | 104 |
| 102 void finalizeGarbageCollectedObject(); | 105 void finalizeGarbageCollectedObject(); |
| 103 DEFINE_INLINE_TRACE_AFTER_DISPATCH() { } | 106 DEFINE_INLINE_TRACE_AFTER_DISPATCH() { } |
| 104 DECLARE_TRACE(); | 107 DECLARE_TRACE(); |
| 105 | 108 |
| 106 // ~CSSValue should be public, because non-public ~CSSValue causes C2248 | 109 // ~CSSValue should be public, because non-public ~CSSValue causes C2248 |
| 107 // error: 'blink::CSSValue::~CSSValue' : cannot access protected member | 110 // error: 'blink::CSSValue::~CSSValue' : cannot access protected member |
| 108 // declared in class 'blink::CSSValue' when compiling | 111 // declared in class 'blink::CSSValue' when compiling |
| 109 // 'source\wtf\refcounted.h' by using msvc. | 112 // 'source\wtf\refcounted.h' by using msvc. |
| 110 ~CSSValue() { } | 113 ~CSSValue() { } |
| 111 | 114 |
| 112 protected: | 115 protected: |
| 113 | 116 |
| 114 static const size_t ClassTypeBits = 6; | 117 static const size_t ClassTypeBits = 6; |
| 115 enum ClassType { | 118 enum ClassType { |
| 116 PrimitiveClass, | 119 PrimitiveClass, |
| 117 CounterClass, | 120 CounterClass, |
| 118 QuadClass, | 121 QuadClass, |
| 122 IdentClass, |
| 123 StringClass, |
| 124 URIClass, |
| 119 ValuePairClass, | 125 ValuePairClass, |
| 120 | 126 |
| 121 // Image classes. | 127 // Image classes. |
| 122 ImageClass, | 128 ImageClass, |
| 123 CursorImageClass, | 129 CursorImageClass, |
| 124 | 130 |
| 125 // Image generator classes. | 131 // Image generator classes. |
| 126 CanvasClass, | 132 CanvasClass, |
| 127 CrossfadeClass, | 133 CrossfadeClass, |
| 128 LinearGradientClass, | 134 LinearGradientClass, |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 return false; | 249 return false; |
| 244 return first->equals(*second); | 250 return first->equals(*second); |
| 245 } | 251 } |
| 246 | 252 |
| 247 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ | 253 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ |
| 248 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, value.predica
te) | 254 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, value.predica
te) |
| 249 | 255 |
| 250 } // namespace blink | 256 } // namespace blink |
| 251 | 257 |
| 252 #endif // CSSValue_h | 258 #endif // CSSValue_h |
| OLD | NEW |