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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 bool isFilterValue() const { return m_classType == CSSFilterClass; } | 98 bool isFilterValue() const { return m_classType == CSSFilterClass; } |
99 bool isArrayFunctionValue() const { return m_classType == CSSArrayFunctionVa
lueClass; } | 99 bool isArrayFunctionValue() const { return m_classType == CSSArrayFunctionVa
lueClass; } |
100 bool isMixFunctionValue() const { return m_classType == CSSMixFunctionValueC
lass; } | 100 bool isMixFunctionValue() const { return m_classType == CSSMixFunctionValueC
lass; } |
101 bool isShaderValue() const { return m_classType == CSSShaderClass; } | 101 bool isShaderValue() const { return m_classType == CSSShaderClass; } |
102 bool isVariableValue() const { return m_classType == VariableClass; } | 102 bool isVariableValue() const { return m_classType == VariableClass; } |
103 bool isGridTemplateValue() const { return m_classType == GridTemplateClass;
} | 103 bool isGridTemplateValue() const { return m_classType == GridTemplateClass;
} |
104 bool isSVGColor() const { return m_classType == SVGColorClass || m_classType
== SVGPaintClass; } | 104 bool isSVGColor() const { return m_classType == SVGColorClass || m_classType
== SVGPaintClass; } |
105 bool isSVGPaint() const { return m_classType == SVGPaintClass; } | 105 bool isSVGPaint() const { return m_classType == SVGPaintClass; } |
106 bool isSVGDocumentValue() const { return m_classType == CSSSVGDocumentClass;
} | 106 bool isSVGDocumentValue() const { return m_classType == CSSSVGDocumentClass;
} |
107 bool isUnicodeRangeValue() const { return m_classType == UnicodeRangeClass;
} | 107 bool isUnicodeRangeValue() const { return m_classType == UnicodeRangeClass;
} |
| 108 bool isGridLineNamesValue() const { return m_classType == GridLineNamesClass
; } |
108 | 109 |
109 bool isCSSOMSafe() const { return m_isCSSOMSafe; } | 110 bool isCSSOMSafe() const { return m_isCSSOMSafe; } |
110 bool isSubtypeExposedToCSSOM() const | 111 bool isSubtypeExposedToCSSOM() const |
111 { | 112 { |
112 return isPrimitiveValue() || isSVGColor() || isValueList(); | 113 return isPrimitiveValue() || isSVGColor() || isValueList(); |
113 } | 114 } |
114 | 115 |
115 PassRefPtr<CSSValue> cloneForCSSOM() const; | 116 PassRefPtr<CSSValue> cloneForCSSOM() const; |
116 | 117 |
117 void addSubresourceStyleURLs(ListHashSet<KURL>&, const StyleSheetContents*)
const; | 118 void addSubresourceStyleURLs(ListHashSet<KURL>&, const StyleSheetContents*)
const; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 SVGPaintClass, | 166 SVGPaintClass, |
166 CSSSVGDocumentClass, | 167 CSSSVGDocumentClass, |
167 | 168 |
168 // List class types must appear after ValueListClass. | 169 // List class types must appear after ValueListClass. |
169 ValueListClass, | 170 ValueListClass, |
170 ImageSetClass, | 171 ImageSetClass, |
171 CSSFilterClass, | 172 CSSFilterClass, |
172 CSSArrayFunctionValueClass, | 173 CSSArrayFunctionValueClass, |
173 CSSMixFunctionValueClass, | 174 CSSMixFunctionValueClass, |
174 CSSTransformClass, | 175 CSSTransformClass, |
| 176 GridLineNamesClass, |
175 // Do not append non-list class types here. | 177 // Do not append non-list class types here. |
176 }; | 178 }; |
177 | 179 |
178 static const size_t ValueListSeparatorBits = 2; | 180 static const size_t ValueListSeparatorBits = 2; |
179 enum ValueListSeparator { | 181 enum ValueListSeparator { |
180 SpaceSeparator, | 182 SpaceSeparator, |
181 CommaSeparator, | 183 CommaSeparator, |
182 SlashSeparator | 184 SlashSeparator |
183 }; | 185 }; |
184 | 186 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 { | 244 { |
243 return first ? second && first->equals(*second) : !second; | 245 return first ? second && first->equals(*second) : !second; |
244 } | 246 } |
245 | 247 |
246 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ | 248 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ |
247 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, value.predica
te) | 249 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, value.predica
te) |
248 | 250 |
249 } // namespace WebCore | 251 } // namespace WebCore |
250 | 252 |
251 #endif // CSSValue_h | 253 #endif // CSSValue_h |
OLD | NEW |