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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 #endif | 109 #endif |
110 || isValueList(); | 110 || isValueList(); |
111 } | 111 } |
112 | 112 |
113 PassRefPtr<CSSValue> cloneForCSSOM() const; | 113 PassRefPtr<CSSValue> cloneForCSSOM() const; |
114 | 114 |
115 void addSubresourceStyleURLs(ListHashSet<KURL>&, const StyleSheetContents*)
const; | 115 void addSubresourceStyleURLs(ListHashSet<KURL>&, const StyleSheetContents*)
const; |
116 | 116 |
117 bool hasFailedOrCanceledSubresources() const; | 117 bool hasFailedOrCanceledSubresources() const; |
118 | 118 |
119 void reportMemoryUsage(MemoryObjectInfo*) const; | |
120 | |
121 bool equals(const CSSValue&) const; | 119 bool equals(const CSSValue&) const; |
122 | 120 |
123 protected: | 121 protected: |
124 | 122 |
125 static const size_t ClassTypeBits = 6; | 123 static const size_t ClassTypeBits = 6; |
126 enum ClassType { | 124 enum ClassType { |
127 PrimitiveClass, | 125 PrimitiveClass, |
128 | 126 |
129 // Image classes. | 127 // Image classes. |
130 ImageClass, | 128 ImageClass, |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 | 239 |
242 template<typename CSSValueType> | 240 template<typename CSSValueType> |
243 inline bool compareCSSValuePtr(const RefPtr<CSSValueType>& first, const RefPtr<C
SSValueType>& second) | 241 inline bool compareCSSValuePtr(const RefPtr<CSSValueType>& first, const RefPtr<C
SSValueType>& second) |
244 { | 242 { |
245 return first ? second && first->equals(*second) : !second; | 243 return first ? second && first->equals(*second) : !second; |
246 } | 244 } |
247 | 245 |
248 } // namespace WebCore | 246 } // namespace WebCore |
249 | 247 |
250 #endif // CSSValue_h | 248 #endif // CSSValue_h |
OLD | NEW |