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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 | 58 |
59 String cssText() const; | 59 String cssText() const; |
60 | 60 |
61 bool isPrimitiveValue() const { return m_classType == PrimitiveClass; } | 61 bool isPrimitiveValue() const { return m_classType == PrimitiveClass; } |
62 bool isValueList() const { return m_classType >= ValueListClass; } | 62 bool isValueList() const { return m_classType >= ValueListClass; } |
63 | 63 |
64 bool isBaseValueList() const { return m_classType == ValueListClass; } | 64 bool isBaseValueList() const { return m_classType == ValueListClass; } |
65 | 65 |
66 bool isBorderImageSliceValue() const { return m_classType == BorderImageSlic
eClass; } | 66 bool isBorderImageSliceValue() const { return m_classType == BorderImageSlic
eClass; } |
67 bool isCanvasValue() const { return m_classType == CanvasClass; } | 67 bool isCanvasValue() const { return m_classType == CanvasClass; } |
| 68 bool isCounterValue() const { return m_classType == CounterClass; } |
68 bool isCursorImageValue() const { return m_classType == CursorImageClass; } | 69 bool isCursorImageValue() const { return m_classType == CursorImageClass; } |
69 bool isCrossfadeValue() const { return m_classType == CrossfadeClass; } | 70 bool isCrossfadeValue() const { return m_classType == CrossfadeClass; } |
70 bool isFontFeatureValue() const { return m_classType == FontFeatureClass; } | 71 bool isFontFeatureValue() const { return m_classType == FontFeatureClass; } |
71 bool isFontFaceSrcValue() const { return m_classType == FontFaceSrcClass; } | 72 bool isFontFaceSrcValue() const { return m_classType == FontFaceSrcClass; } |
72 bool isFunctionValue() const { return m_classType == FunctionClass; } | 73 bool isFunctionValue() const { return m_classType == FunctionClass; } |
73 bool isImageGeneratorValue() const { return m_classType >= CanvasClass && m_
classType <= RadialGradientClass; } | 74 bool isImageGeneratorValue() const { return m_classType >= CanvasClass && m_
classType <= RadialGradientClass; } |
74 bool isGradientValue() const { return m_classType >= LinearGradientClass &&
m_classType <= RadialGradientClass; } | 75 bool isGradientValue() const { return m_classType >= LinearGradientClass &&
m_classType <= RadialGradientClass; } |
75 bool isImageSetValue() const { return m_classType == ImageSetClass; } | 76 bool isImageSetValue() const { return m_classType == ImageSetClass; } |
76 bool isImageValue() const { return m_classType == ImageClass; } | 77 bool isImageValue() const { return m_classType == ImageClass; } |
77 bool isImplicitInitialValue() const; | 78 bool isImplicitInitialValue() const; |
(...skipping 27 matching lines...) Expand all Loading... |
105 // error: 'blink::CSSValue::~CSSValue' : cannot access protected member | 106 // error: 'blink::CSSValue::~CSSValue' : cannot access protected member |
106 // declared in class 'blink::CSSValue' when compiling | 107 // declared in class 'blink::CSSValue' when compiling |
107 // 'source\wtf\refcounted.h' by using msvc. | 108 // 'source\wtf\refcounted.h' by using msvc. |
108 ~CSSValue() { } | 109 ~CSSValue() { } |
109 | 110 |
110 protected: | 111 protected: |
111 | 112 |
112 static const size_t ClassTypeBits = 6; | 113 static const size_t ClassTypeBits = 6; |
113 enum ClassType { | 114 enum ClassType { |
114 PrimitiveClass, | 115 PrimitiveClass, |
| 116 CounterClass, |
115 | 117 |
116 // Image classes. | 118 // Image classes. |
117 ImageClass, | 119 ImageClass, |
118 CursorImageClass, | 120 CursorImageClass, |
119 | 121 |
120 // Image generator classes. | 122 // Image generator classes. |
121 CanvasClass, | 123 CanvasClass, |
122 CrossfadeClass, | 124 CrossfadeClass, |
123 LinearGradientClass, | 125 LinearGradientClass, |
124 RadialGradientClass, | 126 RadialGradientClass, |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 return false; | 243 return false; |
242 return first->equals(*second); | 244 return first->equals(*second); |
243 } | 245 } |
244 | 246 |
245 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ | 247 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ |
246 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, value.predica
te) | 248 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, value.predica
te) |
247 | 249 |
248 } // namespace blink | 250 } // namespace blink |
249 | 251 |
250 #endif // CSSValue_h | 252 #endif // CSSValue_h |
OLD | NEW |