| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 bool isCustomIdentValue() const { return m_classType == CustomIdentClass; } | 92 bool isCustomIdentValue() const { return m_classType == CustomIdentClass; } |
| 93 bool isImageGeneratorValue() const { | 93 bool isImageGeneratorValue() const { |
| 94 return m_classType >= CrossfadeClass && m_classType <= RadialGradientClass; | 94 return m_classType >= CrossfadeClass && m_classType <= RadialGradientClass; |
| 95 } | 95 } |
| 96 bool isGradientValue() const { | 96 bool isGradientValue() const { |
| 97 return m_classType >= LinearGradientClass && | 97 return m_classType >= LinearGradientClass && |
| 98 m_classType <= RadialGradientClass; | 98 m_classType <= RadialGradientClass; |
| 99 } | 99 } |
| 100 bool isImageSetValue() const { return m_classType == ImageSetClass; } | 100 bool isImageSetValue() const { return m_classType == ImageSetClass; } |
| 101 bool isImageValue() const { return m_classType == ImageClass; } | 101 bool isImageValue() const { return m_classType == ImageClass; } |
| 102 bool isImplicitInitialValue() const; | |
| 103 bool isInheritedValue() const { return m_classType == InheritedClass; } | 102 bool isInheritedValue() const { return m_classType == InheritedClass; } |
| 104 bool isInitialValue() const { return m_classType == InitialClass; } | 103 bool isInitialValue() const { return m_classType == InitialClass; } |
| 105 bool isUnsetValue() const { return m_classType == UnsetClass; } | 104 bool isUnsetValue() const { return m_classType == UnsetClass; } |
| 106 bool isCSSWideKeyword() const { | 105 bool isCSSWideKeyword() const { |
| 107 return m_classType >= InheritedClass && m_classType <= UnsetClass; | 106 return m_classType >= InheritedClass && m_classType <= UnsetClass; |
| 108 } | 107 } |
| 109 bool isLinearGradientValue() const { | 108 bool isLinearGradientValue() const { |
| 110 return m_classType == LinearGradientClass; | 109 return m_classType == LinearGradientClass; |
| 111 } | 110 } |
| 112 bool isPathValue() const { return m_classType == PathClass; } | 111 bool isPathValue() const { return m_classType == PathClass; } |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 return first->equals(*second); | 302 return first->equals(*second); |
| 304 } | 303 } |
| 305 | 304 |
| 306 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ | 305 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ |
| 307 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, \ | 306 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, \ |
| 308 value.predicate) | 307 value.predicate) |
| 309 | 308 |
| 310 } // namespace blink | 309 } // namespace blink |
| 311 | 310 |
| 312 #endif // CSSValue_h | 311 #endif // CSSValue_h |
| OLD | NEW |