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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 isCubicBezierTimingFunctionValue() const { return m_classType == CubicB
ezierTimingFunctionClass; } | 90 bool isCubicBezierTimingFunctionValue() const { return m_classType == CubicB
ezierTimingFunctionClass; } |
91 bool isStepsTimingFunctionValue() const { return m_classType == StepsTimingF
unctionClass; } | 91 bool isStepsTimingFunctionValue() const { return m_classType == StepsTimingF
unctionClass; } |
92 bool isLineBoxContainValue() const { return m_classType == LineBoxContainCla
ss; } | |
93 bool isGridTemplateAreasValue() const { return m_classType == GridTemplateAr
easClass; } | 92 bool isGridTemplateAreasValue() const { return m_classType == GridTemplateAr
easClass; } |
94 bool isSVGDocumentValue() const { return m_classType == CSSSVGDocumentClass;
} | 93 bool isSVGDocumentValue() const { return m_classType == CSSSVGDocumentClass;
} |
95 bool isContentDistributionValue() const { return m_classType == CSSContentDi
stributionClass; } | 94 bool isContentDistributionValue() const { return m_classType == CSSContentDi
stributionClass; } |
96 bool isUnicodeRangeValue() const { return m_classType == UnicodeRangeClass;
} | 95 bool isUnicodeRangeValue() const { return m_classType == UnicodeRangeClass;
} |
97 bool isGridLineNamesValue() const { return m_classType == GridLineNamesClass
; } | 96 bool isGridLineNamesValue() const { return m_classType == GridLineNamesClass
; } |
98 | 97 |
99 bool hasFailedOrCanceledSubresources() const; | 98 bool hasFailedOrCanceledSubresources() const; |
100 | 99 |
101 bool equals(const CSSValue&) const; | 100 bool equals(const CSSValue&) const; |
102 | 101 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 FontFeatureClass, | 137 FontFeatureClass, |
139 FontFaceSrcClass, | 138 FontFaceSrcClass, |
140 | 139 |
141 InheritedClass, | 140 InheritedClass, |
142 InitialClass, | 141 InitialClass, |
143 UnsetClass, | 142 UnsetClass, |
144 | 143 |
145 ReflectClass, | 144 ReflectClass, |
146 ShadowClass, | 145 ShadowClass, |
147 UnicodeRangeClass, | 146 UnicodeRangeClass, |
148 LineBoxContainClass, | |
149 GridTemplateAreasClass, | 147 GridTemplateAreasClass, |
150 PathClass, | 148 PathClass, |
151 | 149 |
152 // SVG classes. | 150 // SVG classes. |
153 CSSSVGDocumentClass, | 151 CSSSVGDocumentClass, |
154 | 152 |
155 CSSContentDistributionClass, | 153 CSSContentDistributionClass, |
156 | 154 |
157 // List class types must appear after ValueListClass. | 155 // List class types must appear after ValueListClass. |
158 ValueListClass, | 156 ValueListClass, |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 return false; | 243 return false; |
246 return first->equals(*second); | 244 return first->equals(*second); |
247 } | 245 } |
248 | 246 |
249 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ | 247 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ |
250 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, value.predica
te) | 248 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, value.predica
te) |
251 | 249 |
252 } // namespace blink | 250 } // namespace blink |
253 | 251 |
254 #endif // CSSValue_h | 252 #endif // CSSValue_h |
OLD | NEW |