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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 | 231 |
232 void traceAfterDispatch(Visitor*); | 232 void traceAfterDispatch(Visitor*); |
233 | 233 |
234 private: | 234 private: |
235 explicit MutableStylePropertySet(CSSParserMode); | 235 explicit MutableStylePropertySet(CSSParserMode); |
236 explicit MutableStylePropertySet(const StylePropertySet&); | 236 explicit MutableStylePropertySet(const StylePropertySet&); |
237 MutableStylePropertySet(const CSSProperty* properties, unsigned count); | 237 MutableStylePropertySet(const CSSProperty* properties, unsigned count); |
238 | 238 |
239 bool removeShorthandProperty(CSSPropertyID); | 239 bool removeShorthandProperty(CSSPropertyID); |
240 CSSProperty* findCSSPropertyWithID(CSSPropertyID); | 240 CSSProperty* findCSSPropertyWithID(CSSPropertyID); |
241 OwnPtrWillBeMember<PropertySetCSSStyleDeclaration> m_cssomWrapper; | 241 OwnPtr<PropertySetCSSStyleDeclaration> m_cssomWrapper; |
242 | 242 |
243 friend class StylePropertySet; | 243 friend class StylePropertySet; |
244 | 244 |
245 WillBeHeapVector<CSSProperty, 4> m_propertyVector; | 245 WillBeHeapVector<CSSProperty, 4> m_propertyVector; |
246 }; | 246 }; |
247 | 247 |
248 DEFINE_TYPE_CASTS(MutableStylePropertySet, StylePropertySet, set, set->isMutable
(), set.isMutable()); | 248 DEFINE_TYPE_CASTS(MutableStylePropertySet, StylePropertySet, set, set->isMutable
(), set.isMutable()); |
249 | 249 |
250 inline MutableStylePropertySet* toMutableStylePropertySet(const RefPtr<StyleProp
ertySet>& set) | 250 inline MutableStylePropertySet* toMutableStylePropertySet(const RefPtr<StyleProp
ertySet>& set) |
251 { | 251 { |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 inline int StylePropertySet::findPropertyIndex(CSSPropertyID propertyID) const | 294 inline int StylePropertySet::findPropertyIndex(CSSPropertyID propertyID) const |
295 { | 295 { |
296 if (m_isMutable) | 296 if (m_isMutable) |
297 return toMutableStylePropertySet(this)->findPropertyIndex(propertyID); | 297 return toMutableStylePropertySet(this)->findPropertyIndex(propertyID); |
298 return toImmutableStylePropertySet(this)->findPropertyIndex(propertyID); | 298 return toImmutableStylePropertySet(this)->findPropertyIndex(propertyID); |
299 } | 299 } |
300 | 300 |
301 } // namespace WebCore | 301 } // namespace WebCore |
302 | 302 |
303 #endif // StylePropertySet_h | 303 #endif // StylePropertySet_h |
OLD | NEW |