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