| 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 bool isShadowValue() const { return m_classType == ShadowClass; } | 95 bool isShadowValue() const { return m_classType == ShadowClass; } |
| 96 bool isTextCloneCSSValue() const { return m_isTextClone; } | 96 bool isTextCloneCSSValue() const { return m_isTextClone; } |
| 97 bool isCubicBezierTimingFunctionValue() const { return m_classType == CubicB
ezierTimingFunctionClass; } | 97 bool isCubicBezierTimingFunctionValue() const { return m_classType == CubicB
ezierTimingFunctionClass; } |
| 98 bool isStepsTimingFunctionValue() const { return m_classType == StepsTimingF
unctionClass; } | 98 bool isStepsTimingFunctionValue() const { return m_classType == StepsTimingF
unctionClass; } |
| 99 bool isTransformValue() const { return m_classType == CSSTransformClass; } | 99 bool isTransformValue() const { return m_classType == CSSTransformClass; } |
| 100 bool isLineBoxContainValue() const { return m_classType == LineBoxContainCla
ss; } | 100 bool isLineBoxContainValue() const { return m_classType == LineBoxContainCla
ss; } |
| 101 bool isCalcValue() const {return m_classType == CalculationClass; } | 101 bool isCalcValue() const {return m_classType == CalculationClass; } |
| 102 bool isFilterValue() const { return m_classType == CSSFilterClass; } | 102 bool isFilterValue() const { return m_classType == CSSFilterClass; } |
| 103 bool isGridTemplateAreasValue() const { return m_classType == GridTemplateAr
easClass; } | 103 bool isGridTemplateAreasValue() const { return m_classType == GridTemplateAr
easClass; } |
| 104 bool isSVGDocumentValue() const { return m_classType == CSSSVGDocumentClass;
} | 104 bool isSVGDocumentValue() const { return m_classType == CSSSVGDocumentClass;
} |
| 105 bool isContentDistributionValue() const { return m_classType == CSSContentDi
stributionClass; } |
| 105 bool isUnicodeRangeValue() const { return m_classType == UnicodeRangeClass;
} | 106 bool isUnicodeRangeValue() const { return m_classType == UnicodeRangeClass;
} |
| 106 bool isGridLineNamesValue() const { return m_classType == GridLineNamesClass
; } | 107 bool isGridLineNamesValue() const { return m_classType == GridLineNamesClass
; } |
| 107 | 108 |
| 108 bool isCSSOMSafe() const { return m_isCSSOMSafe; } | 109 bool isCSSOMSafe() const { return m_isCSSOMSafe; } |
| 109 bool isSubtypeExposedToCSSOM() const | 110 bool isSubtypeExposedToCSSOM() const |
| 110 { | 111 { |
| 111 return isPrimitiveValue() || isValueList(); | 112 return isPrimitiveValue() || isValueList(); |
| 112 } | 113 } |
| 113 | 114 |
| 114 PassRefPtrWillBeRawPtr<CSSValue> cloneForCSSOM() const; | 115 PassRefPtrWillBeRawPtr<CSSValue> cloneForCSSOM() const; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 ReflectClass, | 155 ReflectClass, |
| 155 ShadowClass, | 156 ShadowClass, |
| 156 UnicodeRangeClass, | 157 UnicodeRangeClass, |
| 157 LineBoxContainClass, | 158 LineBoxContainClass, |
| 158 CalculationClass, | 159 CalculationClass, |
| 159 GridTemplateAreasClass, | 160 GridTemplateAreasClass, |
| 160 | 161 |
| 161 // SVG classes. | 162 // SVG classes. |
| 162 CSSSVGDocumentClass, | 163 CSSSVGDocumentClass, |
| 163 | 164 |
| 165 CSSContentDistributionClass, |
| 166 |
| 164 // List class types must appear after ValueListClass. | 167 // List class types must appear after ValueListClass. |
| 165 ValueListClass, | 168 ValueListClass, |
| 166 ImageSetClass, | 169 ImageSetClass, |
| 167 CSSFilterClass, | 170 CSSFilterClass, |
| 168 CSSTransformClass, | 171 CSSTransformClass, |
| 169 GridLineNamesClass, | 172 GridLineNamesClass, |
| 170 // Do not append non-list class types here. | 173 // Do not append non-list class types here. |
| 171 }; | 174 }; |
| 172 | 175 |
| 173 static const size_t ValueListSeparatorBits = 2; | 176 static const size_t ValueListSeparatorBits = 2; |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 { | 252 { |
| 250 return first ? second && first->equals(*second) : !second; | 253 return first ? second && first->equals(*second) : !second; |
| 251 } | 254 } |
| 252 | 255 |
| 253 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ | 256 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ |
| 254 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, value.predica
te) | 257 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, value.predica
te) |
| 255 | 258 |
| 256 } // namespace blink | 259 } // namespace blink |
| 257 | 260 |
| 258 #endif // CSSValue_h | 261 #endif // CSSValue_h |
| OLD | NEW |