Chromium Code Reviews| 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 isReflectValue() const { return m_classType == ReflectClass; } | 84 bool isReflectValue() const { return m_classType == ReflectClass; } |
| 85 bool isShadowValue() const { return m_classType == ShadowClass; } | 85 bool isShadowValue() const { return m_classType == ShadowClass; } |
| 86 bool isCubicBezierTimingFunctionValue() const { return m_classType == CubicB ezierTimingFunctionClass; } | 86 bool isCubicBezierTimingFunctionValue() const { return m_classType == CubicB ezierTimingFunctionClass; } |
| 87 bool isLinearTimingFunctionValue() const { return m_classType == LinearTimin gFunctionClass; } | 87 bool isLinearTimingFunctionValue() const { return m_classType == LinearTimin gFunctionClass; } |
| 88 bool isStepsTimingFunctionValue() const { return m_classType == StepsTimingF unctionClass; } | 88 bool isStepsTimingFunctionValue() const { return m_classType == StepsTimingF unctionClass; } |
| 89 bool isWebKitCSSTransformValue() const { return m_classType == WebKitCSSTran sformClass; } | 89 bool isWebKitCSSTransformValue() const { return m_classType == WebKitCSSTran sformClass; } |
| 90 bool isCSSLineBoxContainValue() const { return m_classType == LineBoxContain Class; } | 90 bool isCSSLineBoxContainValue() const { return m_classType == LineBoxContain Class; } |
| 91 bool isCalculationValue() const {return m_classType == CalculationClass; } | 91 bool isCalculationValue() const {return m_classType == CalculationClass; } |
| 92 #if ENABLE(CSS_FILTERS) | 92 #if ENABLE(CSS_FILTERS) |
| 93 bool isWebKitCSSFilterValue() const { return m_classType == WebKitCSSFilterC lass; } | 93 bool isWebKitCSSFilterValue() const { return m_classType == WebKitCSSFilterC lass; } |
| 94 #if ENABLE(CSS_SHADERS) | |
| 95 bool isWebKitCSSArrayFunctionValue() const { return m_classType == WebKitCSS ArrayFunctionValueClass; } | 94 bool isWebKitCSSArrayFunctionValue() const { return m_classType == WebKitCSS ArrayFunctionValueClass; } |
| 96 bool isWebKitCSSMixFunctionValue() const { return m_classType == WebKitCSSMi xFunctionValueClass; } | 95 bool isWebKitCSSMixFunctionValue() const { return m_classType == WebKitCSSMi xFunctionValueClass; } |
| 97 bool isWebKitCSSShaderValue() const { return m_classType == WebKitCSSShaderC lass; } | 96 bool isWebKitCSSShaderValue() const { return m_classType == WebKitCSSShaderC lass; } |
| 98 #endif | |
| 99 #endif // ENABLE(CSS_FILTERS) | 97 #endif // ENABLE(CSS_FILTERS) |
| 100 bool isVariableValue() const { return m_classType == VariableClass; } | 98 bool isVariableValue() const { return m_classType == VariableClass; } |
| 101 #if ENABLE(SVG) | 99 #if ENABLE(SVG) |
| 102 bool isSVGColor() const { return m_classType == SVGColorClass || m_classType == SVGPaintClass; } | 100 bool isSVGColor() const { return m_classType == SVGColorClass || m_classType == SVGPaintClass; } |
| 103 bool isSVGPaint() const { return m_classType == SVGPaintClass; } | 101 bool isSVGPaint() const { return m_classType == SVGPaintClass; } |
| 104 bool isWebKitCSSSVGDocumentValue() const { return m_classType == WebKitCSSSV GDocumentClass; } | 102 bool isWebKitCSSSVGDocumentValue() const { return m_classType == WebKitCSSSV GDocumentClass; } |
| 105 #endif | 103 #endif |
| 106 | 104 |
| 107 bool isCSSOMSafe() const { return m_isCSSOMSafe; } | 105 bool isCSSOMSafe() const { return m_isCSSOMSafe; } |
| 108 bool isSubtypeExposedToCSSOM() const | 106 bool isSubtypeExposedToCSSOM() const |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 154 FunctionClass, | 152 FunctionClass, |
| 155 | 153 |
| 156 InheritedClass, | 154 InheritedClass, |
| 157 InitialClass, | 155 InitialClass, |
| 158 | 156 |
| 159 ReflectClass, | 157 ReflectClass, |
| 160 ShadowClass, | 158 ShadowClass, |
| 161 UnicodeRangeClass, | 159 UnicodeRangeClass, |
| 162 LineBoxContainClass, | 160 LineBoxContainClass, |
| 163 CalculationClass, | 161 CalculationClass, |
| 164 #if ENABLE(CSS_FILTERS) && ENABLE(CSS_SHADERS) | |
|
eseidel
2013/04/09 18:30:08
Are CSS_FILTERS always compiled in as well?
Max Vujovic (mvujovic)
2013/04/09 18:53:14
CSS_FILTERS are always compiled in as well. I'll b
| |
| 165 WebKitCSSShaderClass, | 162 WebKitCSSShaderClass, |
| 166 #endif | |
| 167 VariableClass, | 163 VariableClass, |
| 168 #if ENABLE(SVG) | 164 #if ENABLE(SVG) |
| 169 SVGColorClass, | 165 SVGColorClass, |
| 170 SVGPaintClass, | 166 SVGPaintClass, |
| 171 WebKitCSSSVGDocumentClass, | 167 WebKitCSSSVGDocumentClass, |
| 172 #endif | 168 #endif |
| 173 | 169 |
| 174 // List class types must appear after ValueListClass. | 170 // List class types must appear after ValueListClass. |
| 175 ValueListClass, | 171 ValueListClass, |
| 176 #if ENABLE(CSS_IMAGE_SET) | 172 #if ENABLE(CSS_IMAGE_SET) |
| 177 ImageSetClass, | 173 ImageSetClass, |
| 178 #endif | 174 #endif |
| 179 #if ENABLE(CSS_FILTERS) | 175 #if ENABLE(CSS_FILTERS) |
| 180 WebKitCSSFilterClass, | 176 WebKitCSSFilterClass, |
| 181 #if ENABLE(CSS_SHADERS) | |
| 182 WebKitCSSArrayFunctionValueClass, | 177 WebKitCSSArrayFunctionValueClass, |
| 183 WebKitCSSMixFunctionValueClass, | 178 WebKitCSSMixFunctionValueClass, |
| 184 #endif | 179 #endif |
| 185 #endif | |
| 186 WebKitCSSTransformClass, | 180 WebKitCSSTransformClass, |
| 187 // Do not append non-list class types here. | 181 // Do not append non-list class types here. |
| 188 }; | 182 }; |
| 189 | 183 |
| 190 static const size_t ValueListSeparatorBits = 2; | 184 static const size_t ValueListSeparatorBits = 2; |
| 191 enum ValueListSeparator { | 185 enum ValueListSeparator { |
| 192 SpaceSeparator, | 186 SpaceSeparator, |
| 193 CommaSeparator, | 187 CommaSeparator, |
| 194 SlashSeparator | 188 SlashSeparator |
| 195 }; | 189 }; |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 251 | 245 |
| 252 template<typename CSSValueType> | 246 template<typename CSSValueType> |
| 253 inline bool compareCSSValuePtr(const RefPtr<CSSValueType>& first, const RefPtr<C SSValueType>& second) | 247 inline bool compareCSSValuePtr(const RefPtr<CSSValueType>& first, const RefPtr<C SSValueType>& second) |
| 254 { | 248 { |
| 255 return first ? second && first->equals(*second) : !second; | 249 return first ? second && first->equals(*second) : !second; |
| 256 } | 250 } |
| 257 | 251 |
| 258 } // namespace WebCore | 252 } // namespace WebCore |
| 259 | 253 |
| 260 #endif // CSSValue_h | 254 #endif // CSSValue_h |
| OLD | NEW |