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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 bool isPathValue() const { return m_classType == PathClass; } | 84 bool isPathValue() const { return m_classType == PathClass; } |
85 bool isQuadValue() const { return m_classType == QuadClass; } | 85 bool isQuadValue() const { return m_classType == QuadClass; } |
86 bool isRadialGradientValue() const { return m_classType == RadialGradientCla
ss; } | 86 bool isRadialGradientValue() const { return m_classType == RadialGradientCla
ss; } |
87 bool isReflectValue() const { return m_classType == ReflectClass; } | 87 bool isReflectValue() const { return m_classType == ReflectClass; } |
88 bool isShadowValue() const { return m_classType == ShadowClass; } | 88 bool isShadowValue() const { return m_classType == ShadowClass; } |
89 bool isStringValue() const { return m_classType == StringClass; } | 89 bool isStringValue() const { return m_classType == StringClass; } |
90 bool isURIValue() const { return m_classType == URIClass; } | 90 bool isURIValue() const { return m_classType == URIClass; } |
91 bool isCubicBezierTimingFunctionValue() const { return m_classType == CubicB
ezierTimingFunctionClass; } | 91 bool isCubicBezierTimingFunctionValue() const { return m_classType == CubicB
ezierTimingFunctionClass; } |
92 bool isStepsTimingFunctionValue() const { return m_classType == StepsTimingF
unctionClass; } | 92 bool isStepsTimingFunctionValue() const { return m_classType == StepsTimingF
unctionClass; } |
93 bool isGridTemplateAreasValue() const { return m_classType == GridTemplateAr
easClass; } | 93 bool isGridTemplateAreasValue() const { return m_classType == GridTemplateAr
easClass; } |
94 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 bool isCustomPropertyDeclaration() const { return m_classType == CustomPrope
rtyDeclarationClass; } | 97 bool isCustomPropertyDeclaration() const { return m_classType == CustomPrope
rtyDeclarationClass; } |
99 bool isVariableReferenceValue() const { return m_classType == VariableRefere
nceClass; } | 98 bool isVariableReferenceValue() const { return m_classType == VariableRefere
nceClass; } |
100 bool isGridAutoRepeatValue() const { return m_classType == GridAutoRepeatCla
ss; } | 99 bool isGridAutoRepeatValue() const { return m_classType == GridAutoRepeatCla
ss; } |
101 bool isPendingSubstitutionValue() const { return m_classType == PendingSubst
itutionValueClass; } | 100 bool isPendingSubstitutionValue() const { return m_classType == PendingSubst
itutionValueClass; } |
102 | 101 |
103 bool hasFailedOrCanceledSubresources() const; | 102 bool hasFailedOrCanceledSubresources() const; |
104 | 103 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 | 158 |
160 ReflectClass, | 159 ReflectClass, |
161 ShadowClass, | 160 ShadowClass, |
162 UnicodeRangeClass, | 161 UnicodeRangeClass, |
163 GridTemplateAreasClass, | 162 GridTemplateAreasClass, |
164 PathClass, | 163 PathClass, |
165 VariableReferenceClass, | 164 VariableReferenceClass, |
166 CustomPropertyDeclarationClass, | 165 CustomPropertyDeclarationClass, |
167 PendingSubstitutionValueClass, | 166 PendingSubstitutionValueClass, |
168 | 167 |
169 // SVG classes. | |
170 CSSSVGDocumentClass, | |
171 | |
172 CSSContentDistributionClass, | 168 CSSContentDistributionClass, |
173 | 169 |
174 // List class types must appear after ValueListClass. | 170 // List class types must appear after ValueListClass. |
175 ValueListClass, | 171 ValueListClass, |
176 FunctionClass, | 172 FunctionClass, |
177 ImageSetClass, | 173 ImageSetClass, |
178 GridLineNamesClass, | 174 GridLineNamesClass, |
179 GridAutoRepeatClass, | 175 GridAutoRepeatClass, |
180 // Do not append non-list class types here. | 176 // Do not append non-list class types here. |
181 }; | 177 }; |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 return false; | 259 return false; |
264 return first->equals(*second); | 260 return first->equals(*second); |
265 } | 261 } |
266 | 262 |
267 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ | 263 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ |
268 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, value.predica
te) | 264 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, value.predica
te) |
269 | 265 |
270 } // namespace blink | 266 } // namespace blink |
271 | 267 |
272 #endif // CSSValue_h | 268 #endif // CSSValue_h |
OLD | NEW |