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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 void deref() | 52 void deref() |
53 { | 53 { |
54 if (derefBase()) | 54 if (derefBase()) |
55 destroy(); | 55 destroy(); |
56 } | 56 } |
57 #endif // !ENABLE(OILPAN) | 57 #endif // !ENABLE(OILPAN) |
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 isValuePair() const { return m_classType == ValuePairClass; } |
62 bool isValueList() const { return m_classType >= ValueListClass; } | 63 bool isValueList() const { return m_classType >= ValueListClass; } |
63 | 64 |
64 bool isBaseValueList() const { return m_classType == ValueListClass; } | 65 bool isBaseValueList() const { return m_classType == ValueListClass; } |
65 | 66 |
66 bool isBorderImageSliceValue() const { return m_classType == BorderImageSlic
eClass; } | 67 bool isBorderImageSliceValue() const { return m_classType == BorderImageSlic
eClass; } |
67 bool isCanvasValue() const { return m_classType == CanvasClass; } | 68 bool isCanvasValue() const { return m_classType == CanvasClass; } |
68 bool isCounterValue() const { return m_classType == CounterClass; } | 69 bool isCounterValue() const { return m_classType == CounterClass; } |
69 bool isCursorImageValue() const { return m_classType == CursorImageClass; } | 70 bool isCursorImageValue() const { return m_classType == CursorImageClass; } |
70 bool isCrossfadeValue() const { return m_classType == CrossfadeClass; } | 71 bool isCrossfadeValue() const { return m_classType == CrossfadeClass; } |
71 bool isFontFeatureValue() const { return m_classType == FontFeatureClass; } | 72 bool isFontFeatureValue() const { return m_classType == FontFeatureClass; } |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 // 'source\wtf\refcounted.h' by using msvc. | 110 // 'source\wtf\refcounted.h' by using msvc. |
110 ~CSSValue() { } | 111 ~CSSValue() { } |
111 | 112 |
112 protected: | 113 protected: |
113 | 114 |
114 static const size_t ClassTypeBits = 6; | 115 static const size_t ClassTypeBits = 6; |
115 enum ClassType { | 116 enum ClassType { |
116 PrimitiveClass, | 117 PrimitiveClass, |
117 CounterClass, | 118 CounterClass, |
118 QuadClass, | 119 QuadClass, |
| 120 ValuePairClass, |
119 | 121 |
120 // Image classes. | 122 // Image classes. |
121 ImageClass, | 123 ImageClass, |
122 CursorImageClass, | 124 CursorImageClass, |
123 | 125 |
124 // Image generator classes. | 126 // Image generator classes. |
125 CanvasClass, | 127 CanvasClass, |
126 CrossfadeClass, | 128 CrossfadeClass, |
127 LinearGradientClass, | 129 LinearGradientClass, |
128 RadialGradientClass, | 130 RadialGradientClass, |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 return false; | 247 return false; |
246 return first->equals(*second); | 248 return first->equals(*second); |
247 } | 249 } |
248 | 250 |
249 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ | 251 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ |
250 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, value.predica
te) | 252 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, value.predica
te) |
251 | 253 |
252 } // namespace blink | 254 } // namespace blink |
253 | 255 |
254 #endif // CSSValue_h | 256 #endif // CSSValue_h |
OLD | NEW |