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, 2008, 2012 Apple Inc. All rights reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2008, 2012 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 bool hasFailedOrCanceledSubresources() const; | 126 bool hasFailedOrCanceledSubresources() const; |
127 | 127 |
128 static unsigned averageSizeInBytes(); | 128 static unsigned averageSizeInBytes(); |
129 | 129 |
130 #ifndef NDEBUG | 130 #ifndef NDEBUG |
131 void showStyle(); | 131 void showStyle(); |
132 #endif | 132 #endif |
133 | 133 |
134 bool propertyMatches(CSSPropertyID, const CSSValue*) const; | 134 bool propertyMatches(CSSPropertyID, const CSSValue*) const; |
135 | 135 |
| 136 void purgeMemory(); |
| 137 |
136 DECLARE_TRACE(); | 138 DECLARE_TRACE(); |
137 DEFINE_INLINE_TRACE_AFTER_DISPATCH() { } | 139 DEFINE_INLINE_TRACE_AFTER_DISPATCH() { } |
138 | 140 |
139 protected: | 141 protected: |
140 | 142 |
141 enum { MaxArraySize = (1 << 28) - 1 }; | 143 enum { MaxArraySize = (1 << 28) - 1 }; |
142 | 144 |
143 StylePropertySet(CSSParserMode cssParserMode) | 145 StylePropertySet(CSSParserMode cssParserMode) |
144 : m_cssParserMode(cssParserMode) | 146 : m_cssParserMode(cssParserMode) |
145 , m_isMutable(true) | 147 , m_isMutable(true) |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 inline int StylePropertySet::findPropertyIndex(T property) const | 315 inline int StylePropertySet::findPropertyIndex(T property) const |
314 { | 316 { |
315 if (m_isMutable) | 317 if (m_isMutable) |
316 return toMutableStylePropertySet(this)->findPropertyIndex(property); | 318 return toMutableStylePropertySet(this)->findPropertyIndex(property); |
317 return toImmutableStylePropertySet(this)->findPropertyIndex(property); | 319 return toImmutableStylePropertySet(this)->findPropertyIndex(property); |
318 } | 320 } |
319 | 321 |
320 } // namespace blink | 322 } // namespace blink |
321 | 323 |
322 #endif // StylePropertySet_h | 324 #endif // StylePropertySet_h |
OLD | NEW |