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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 | 115 |
116 void reportMemoryUsage(MemoryObjectInfo*) const; | 116 void reportMemoryUsage(MemoryObjectInfo*) const; |
117 | 117 |
118 bool equals(const CSSValue&) const; | 118 bool equals(const CSSValue&) const; |
119 | 119 |
120 protected: | 120 protected: |
121 // NOTE: This class is non-virtual for memory and performance reasons. | 121 // NOTE: This class is non-virtual for memory and performance reasons. |
122 // Don't go making it virtual again unless you know exactly what you're doin
g! | 122 // Don't go making it virtual again unless you know exactly what you're doin
g! |
123 ~CSSValue() { } | 123 ~CSSValue() { } |
124 | 124 |
| 125 OVERRIDE_NEW_ALL_SUBCLASSES_HAVE_DYNAMIC_ACCEPT(CSSValue); |
| 126 |
125 static const size_t ClassTypeBits = 6; | 127 static const size_t ClassTypeBits = 6; |
126 enum ClassType { | 128 enum ClassType { |
127 PrimitiveClass, | 129 PrimitiveClass, |
128 | 130 |
129 // Image classes. | 131 // Image classes. |
130 ImageClass, | 132 ImageClass, |
131 CursorImageClass, | 133 CursorImageClass, |
132 | 134 |
133 // Image generator classes. | 135 // Image generator classes. |
134 CanvasClass, | 136 CanvasClass, |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 | 244 |
243 template<typename CSSValueType> | 245 template<typename CSSValueType> |
244 inline bool compareCSSValuePtr(const RefPtr<CSSValueType>& first, const RefPtr<C
SSValueType>& second) | 246 inline bool compareCSSValuePtr(const RefPtr<CSSValueType>& first, const RefPtr<C
SSValueType>& second) |
245 { | 247 { |
246 return first ? second && first->equals(*second) : !second; | 248 return first ? second && first->equals(*second) : !second; |
247 } | 249 } |
248 | 250 |
249 } // namespace WebCore | 251 } // namespace WebCore |
250 | 252 |
251 #endif // CSSValue_h | 253 #endif // CSSValue_h |
OLD | NEW |