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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 PassRefPtrWillBeRawPtr<MutableStylePropertySet> copyPropertiesInSet(const Ve
ctor<CSSPropertyID>&) const; | 107 PassRefPtrWillBeRawPtr<MutableStylePropertySet> copyPropertiesInSet(const Ve
ctor<CSSPropertyID>&) const; |
108 | 108 |
109 String asText() const; | 109 String asText() const; |
110 | 110 |
111 bool isMutable() const { return m_isMutable; } | 111 bool isMutable() const { return m_isMutable; } |
112 | 112 |
113 bool hasFailedOrCanceledSubresources() const; | 113 bool hasFailedOrCanceledSubresources() const; |
114 | 114 |
115 static unsigned averageSizeInBytes(); | 115 static unsigned averageSizeInBytes(); |
116 | 116 |
| 117 unsigned variableCount() const; |
| 118 |
117 #ifndef NDEBUG | 119 #ifndef NDEBUG |
118 void showStyle(); | 120 void showStyle(); |
119 #endif | 121 #endif |
120 | 122 |
121 bool propertyMatches(CSSPropertyID, const CSSValue*) const; | 123 bool propertyMatches(CSSPropertyID, const CSSValue*) const; |
122 | 124 |
123 DECLARE_TRACE(); | 125 DECLARE_TRACE(); |
124 DEFINE_INLINE_TRACE_AFTER_DISPATCH() { } | 126 DEFINE_INLINE_TRACE_AFTER_DISPATCH() { } |
125 | 127 |
126 protected: | 128 protected: |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 inline int StylePropertySet::findPropertyIndex(CSSPropertyID propertyID) const | 292 inline int StylePropertySet::findPropertyIndex(CSSPropertyID propertyID) const |
291 { | 293 { |
292 if (m_isMutable) | 294 if (m_isMutable) |
293 return toMutableStylePropertySet(this)->findPropertyIndex(propertyID); | 295 return toMutableStylePropertySet(this)->findPropertyIndex(propertyID); |
294 return toImmutableStylePropertySet(this)->findPropertyIndex(propertyID); | 296 return toImmutableStylePropertySet(this)->findPropertyIndex(propertyID); |
295 } | 297 } |
296 | 298 |
297 } // namespace blink | 299 } // namespace blink |
298 | 300 |
299 #endif // StylePropertySet_h | 301 #endif // StylePropertySet_h |
OLD | NEW |