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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 bool isShadowValue() const { return m_classType == ShadowClass; } | 96 bool isShadowValue() const { return m_classType == ShadowClass; } |
97 bool isTextCloneCSSValue() const { return m_isTextClone; } | 97 bool isTextCloneCSSValue() const { return m_isTextClone; } |
98 bool isCubicBezierTimingFunctionValue() const { return m_classType == CubicB
ezierTimingFunctionClass; } | 98 bool isCubicBezierTimingFunctionValue() const { return m_classType == CubicB
ezierTimingFunctionClass; } |
99 bool isStepsTimingFunctionValue() const { return m_classType == StepsTimingF
unctionClass; } | 99 bool isStepsTimingFunctionValue() const { return m_classType == StepsTimingF
unctionClass; } |
100 bool isTransformValue() const { return m_classType == CSSTransformClass; } | 100 bool isTransformValue() const { return m_classType == CSSTransformClass; } |
101 bool isLineBoxContainValue() const { return m_classType == LineBoxContainCla
ss; } | 101 bool isLineBoxContainValue() const { return m_classType == LineBoxContainCla
ss; } |
102 bool isCalcValue() const {return m_classType == CalculationClass; } | 102 bool isCalcValue() const {return m_classType == CalculationClass; } |
103 bool isFilterValue() const { return m_classType == CSSFilterClass; } | 103 bool isFilterValue() const { return m_classType == CSSFilterClass; } |
104 bool isArrayFunctionValue() const { return m_classType == CSSArrayFunctionVa
lueClass; } | 104 bool isArrayFunctionValue() const { return m_classType == CSSArrayFunctionVa
lueClass; } |
105 bool isGridTemplateAreasValue() const { return m_classType == GridTemplateAr
easClass; } | 105 bool isGridTemplateAreasValue() const { return m_classType == GridTemplateAr
easClass; } |
106 bool isSVGPaint() const { return m_classType == SVGPaintClass; } | |
107 bool isSVGDocumentValue() const { return m_classType == CSSSVGDocumentClass;
} | 106 bool isSVGDocumentValue() const { return m_classType == CSSSVGDocumentClass;
} |
108 bool isUnicodeRangeValue() const { return m_classType == UnicodeRangeClass;
} | 107 bool isUnicodeRangeValue() const { return m_classType == UnicodeRangeClass;
} |
109 bool isGridLineNamesValue() const { return m_classType == GridLineNamesClass
; } | 108 bool isGridLineNamesValue() const { return m_classType == GridLineNamesClass
; } |
110 | 109 |
111 bool isCSSOMSafe() const { return m_isCSSOMSafe; } | 110 bool isCSSOMSafe() const { return m_isCSSOMSafe; } |
112 bool isSubtypeExposedToCSSOM() const | 111 bool isSubtypeExposedToCSSOM() const |
113 { | 112 { |
114 return isPrimitiveValue() || isSVGPaint() || isValueList(); | 113 return isPrimitiveValue() || isValueList(); |
115 } | 114 } |
116 | 115 |
117 PassRefPtrWillBeRawPtr<CSSValue> cloneForCSSOM() const; | 116 PassRefPtrWillBeRawPtr<CSSValue> cloneForCSSOM() const; |
118 | 117 |
119 bool hasFailedOrCanceledSubresources() const; | 118 bool hasFailedOrCanceledSubresources() const; |
120 | 119 |
121 bool equals(const CSSValue&) const; | 120 bool equals(const CSSValue&) const; |
122 | 121 |
123 void finalizeGarbageCollectedObject(); | 122 void finalizeGarbageCollectedObject(); |
124 void traceAfterDispatch(Visitor*) { } | 123 void traceAfterDispatch(Visitor*) { } |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 InitialClass, | 155 InitialClass, |
157 | 156 |
158 ReflectClass, | 157 ReflectClass, |
159 ShadowClass, | 158 ShadowClass, |
160 UnicodeRangeClass, | 159 UnicodeRangeClass, |
161 LineBoxContainClass, | 160 LineBoxContainClass, |
162 CalculationClass, | 161 CalculationClass, |
163 GridTemplateAreasClass, | 162 GridTemplateAreasClass, |
164 | 163 |
165 // SVG classes. | 164 // SVG classes. |
166 SVGPaintClass, | |
167 CSSSVGDocumentClass, | 165 CSSSVGDocumentClass, |
168 | 166 |
169 // List class types must appear after ValueListClass. | 167 // List class types must appear after ValueListClass. |
170 ValueListClass, | 168 ValueListClass, |
171 ImageSetClass, | 169 ImageSetClass, |
172 CSSFilterClass, | 170 CSSFilterClass, |
173 CSSArrayFunctionValueClass, | 171 CSSArrayFunctionValueClass, |
174 CSSTransformClass, | 172 CSSTransformClass, |
175 GridLineNamesClass, | 173 GridLineNamesClass, |
176 // Do not append non-list class types here. | 174 // Do not append non-list class types here. |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 { | 253 { |
256 return first ? second && first->equals(*second) : !second; | 254 return first ? second && first->equals(*second) : !second; |
257 } | 255 } |
258 | 256 |
259 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ | 257 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ |
260 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, value.predica
te) | 258 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, value.predica
te) |
261 | 259 |
262 } // namespace WebCore | 260 } // namespace WebCore |
263 | 261 |
264 #endif // CSSValue_h | 262 #endif // CSSValue_h |
OLD | NEW |