| 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 bool IsInitialValue() const { return class_type_ == kInitialClass; } | 106 bool IsInitialValue() const { return class_type_ == kInitialClass; } |
| 107 bool IsUnsetValue() const { return class_type_ == kUnsetClass; } | 107 bool IsUnsetValue() const { return class_type_ == kUnsetClass; } |
| 108 bool IsCSSWideKeyword() const { | 108 bool IsCSSWideKeyword() const { |
| 109 return class_type_ >= kInheritedClass && class_type_ <= kUnsetClass; | 109 return class_type_ >= kInheritedClass && class_type_ <= kUnsetClass; |
| 110 } | 110 } |
| 111 bool IsLinearGradientValue() const { | 111 bool IsLinearGradientValue() const { |
| 112 return class_type_ == kLinearGradientClass; | 112 return class_type_ == kLinearGradientClass; |
| 113 } | 113 } |
| 114 bool IsPathValue() const { return class_type_ == kPathClass; } | 114 bool IsPathValue() const { return class_type_ == kPathClass; } |
| 115 bool IsQuadValue() const { return class_type_ == kQuadClass; } | 115 bool IsQuadValue() const { return class_type_ == kQuadClass; } |
| 116 bool IsRayValue() const { return class_type_ == kRayClass; } |
| 116 bool IsRadialGradientValue() const { | 117 bool IsRadialGradientValue() const { |
| 117 return class_type_ == kRadialGradientClass; | 118 return class_type_ == kRadialGradientClass; |
| 118 } | 119 } |
| 119 bool IsConicGradientValue() const { | 120 bool IsConicGradientValue() const { |
| 120 return class_type_ == kConicGradientClass; | 121 return class_type_ == kConicGradientClass; |
| 121 } | 122 } |
| 122 bool IsReflectValue() const { return class_type_ == kReflectClass; } | 123 bool IsReflectValue() const { return class_type_ == kReflectClass; } |
| 123 bool IsShadowValue() const { return class_type_ == kShadowClass; } | 124 bool IsShadowValue() const { return class_type_ == kShadowClass; } |
| 124 bool IsStringValue() const { return class_type_ == kStringClass; } | 125 bool IsStringValue() const { return class_type_ == kStringClass; } |
| 125 bool IsURIValue() const { return class_type_ == kURIClass; } | 126 bool IsURIValue() const { return class_type_ == kURIClass; } |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 | 217 |
| 217 kInheritedClass, | 218 kInheritedClass, |
| 218 kInitialClass, | 219 kInitialClass, |
| 219 kUnsetClass, | 220 kUnsetClass, |
| 220 | 221 |
| 221 kReflectClass, | 222 kReflectClass, |
| 222 kShadowClass, | 223 kShadowClass, |
| 223 kUnicodeRangeClass, | 224 kUnicodeRangeClass, |
| 224 kGridTemplateAreasClass, | 225 kGridTemplateAreasClass, |
| 225 kPathClass, | 226 kPathClass, |
| 227 kRayClass, |
| 226 kVariableReferenceClass, | 228 kVariableReferenceClass, |
| 227 kCustomPropertyDeclarationClass, | 229 kCustomPropertyDeclarationClass, |
| 228 kPendingSubstitutionValueClass, | 230 kPendingSubstitutionValueClass, |
| 229 | 231 |
| 230 kCSSContentDistributionClass, | 232 kCSSContentDistributionClass, |
| 231 | 233 |
| 232 // List class types must appear after ValueListClass. | 234 // List class types must appear after ValueListClass. |
| 233 kValueListClass, | 235 kValueListClass, |
| 234 kFunctionClass, | 236 kFunctionClass, |
| 235 kImageSetClass, | 237 kImageSetClass, |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 return true; | 285 return true; |
| 284 } | 286 } |
| 285 | 287 |
| 286 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ | 288 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ |
| 287 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, \ | 289 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, \ |
| 288 value.predicate) | 290 value.predicate) |
| 289 | 291 |
| 290 } // namespace blink | 292 } // namespace blink |
| 291 | 293 |
| 292 #endif // CSSValue_h | 294 #endif // CSSValue_h |
| OLD | NEW |