| 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 bool isUnicodeRangeValue() const { return m_classType == UnicodeRangeClass;
} | 104 bool isUnicodeRangeValue() const { return m_classType == UnicodeRangeClass;
} |
| 105 | 105 |
| 106 bool isCSSOMSafe() const { return m_isCSSOMSafe; } | 106 bool isCSSOMSafe() const { return m_isCSSOMSafe; } |
| 107 bool isSubtypeExposedToCSSOM() const | 107 bool isSubtypeExposedToCSSOM() const |
| 108 { | 108 { |
| 109 return isPrimitiveValue() || isValueList(); | 109 return isPrimitiveValue() || isValueList(); |
| 110 } | 110 } |
| 111 | 111 |
| 112 PassRefPtr<CSSValue> cloneForCSSOM() const; | 112 PassRefPtr<CSSValue> cloneForCSSOM() const; |
| 113 | 113 |
| 114 bool hasFailedOrCanceledSubresources() const; | |
| 115 | |
| 116 bool equals(const CSSValue&) const; | 114 bool equals(const CSSValue&) const; |
| 117 | 115 |
| 118 protected: | 116 protected: |
| 119 | 117 |
| 120 static const size_t ClassTypeBits = 6; | 118 static const size_t ClassTypeBits = 6; |
| 121 enum ClassType { | 119 enum ClassType { |
| 122 PrimitiveClass, | 120 PrimitiveClass, |
| 123 | 121 |
| 124 // Image classes. | 122 // Image classes. |
| 125 ImageClass, | 123 ImageClass, |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 { | 230 { |
| 233 return first ? second && first->equals(*second) : !second; | 231 return first ? second && first->equals(*second) : !second; |
| 234 } | 232 } |
| 235 | 233 |
| 236 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ | 234 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ |
| 237 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, value.predica
te) | 235 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, value.predica
te) |
| 238 | 236 |
| 239 } // namespace blink | 237 } // namespace blink |
| 240 | 238 |
| 241 #endif // SKY_ENGINE_CORE_CSS_CSSVALUE_H_ | 239 #endif // SKY_ENGINE_CORE_CSS_CSSVALUE_H_ |
| OLD | NEW |