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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 | 238 |
239 private: | 239 private: |
240 explicit MutableStylePropertySet(CSSParserMode); | 240 explicit MutableStylePropertySet(CSSParserMode); |
241 explicit MutableStylePropertySet(const StylePropertySet&); | 241 explicit MutableStylePropertySet(const StylePropertySet&); |
242 MutableStylePropertySet(const CSSProperty* properties, unsigned count); | 242 MutableStylePropertySet(const CSSProperty* properties, unsigned count); |
243 | 243 |
244 bool removePropertyAtIndex(int, String* returnText); | 244 bool removePropertyAtIndex(int, String* returnText); |
245 | 245 |
246 bool removeShorthandProperty(CSSPropertyID); | 246 bool removeShorthandProperty(CSSPropertyID); |
247 bool removeShorthandProperty(const AtomicString& customPropertyName) { retur
n false; } | 247 bool removeShorthandProperty(const AtomicString& customPropertyName) { retur
n false; } |
248 CSSProperty* findCSSPropertyWithID(CSSPropertyID); | 248 CSSProperty* findCSSPropertyWithID(CSSPropertyID, const AtomicString& custom
PropertyName = nullAtom); |
249 OwnPtrWillBeMember<PropertySetCSSStyleDeclaration> m_cssomWrapper; | 249 OwnPtrWillBeMember<PropertySetCSSStyleDeclaration> m_cssomWrapper; |
250 | 250 |
251 friend class StylePropertySet; | 251 friend class StylePropertySet; |
252 | 252 |
253 WillBeHeapVector<CSSProperty, 4> m_propertyVector; | 253 WillBeHeapVector<CSSProperty, 4> m_propertyVector; |
254 }; | 254 }; |
255 | 255 |
256 DEFINE_TYPE_CASTS(MutableStylePropertySet, StylePropertySet, set, set->isMutable
(), set.isMutable()); | 256 DEFINE_TYPE_CASTS(MutableStylePropertySet, StylePropertySet, set, set->isMutable
(), set.isMutable()); |
257 | 257 |
258 inline MutableStylePropertySet* toMutableStylePropertySet(const RefPtrWillBeRawP
tr<StylePropertySet>& set) | 258 inline MutableStylePropertySet* toMutableStylePropertySet(const RefPtrWillBeRawP
tr<StylePropertySet>& set) |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 inline int StylePropertySet::findPropertyIndex(T property) const | 313 inline int StylePropertySet::findPropertyIndex(T property) const |
314 { | 314 { |
315 if (m_isMutable) | 315 if (m_isMutable) |
316 return toMutableStylePropertySet(this)->findPropertyIndex(property); | 316 return toMutableStylePropertySet(this)->findPropertyIndex(property); |
317 return toImmutableStylePropertySet(this)->findPropertyIndex(property); | 317 return toImmutableStylePropertySet(this)->findPropertyIndex(property); |
318 } | 318 } |
319 | 319 |
320 } // namespace blink | 320 } // namespace blink |
321 | 321 |
322 #endif // StylePropertySet_h | 322 #endif // StylePropertySet_h |
OLD | NEW |