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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 PassRefPtr<StylePropertySet> copyBlockProperties() const; | 131 PassRefPtr<StylePropertySet> copyBlockProperties() const; |
132 void removeBlockProperties(); | 132 void removeBlockProperties(); |
133 bool removePropertiesInSet(const CSSPropertyID* set, unsigned length); | 133 bool removePropertiesInSet(const CSSPropertyID* set, unsigned length); |
134 | 134 |
135 void mergeAndOverrideOnConflict(const StylePropertySet*); | 135 void mergeAndOverrideOnConflict(const StylePropertySet*); |
136 | 136 |
137 CSSParserMode cssParserMode() const { return static_cast<CSSParserMode>(m_cs
sParserMode); } | 137 CSSParserMode cssParserMode() const { return static_cast<CSSParserMode>(m_cs
sParserMode); } |
138 | 138 |
139 void addSubresourceStyleURLs(ListHashSet<KURL>&, StyleSheetContents* context
StyleSheet) const; | 139 void addSubresourceStyleURLs(ListHashSet<KURL>&, StyleSheetContents* context
StyleSheet) const; |
140 | 140 |
141 PassRefPtr<StylePropertySet> copy() const; | 141 PassRefPtr<MutableStylePropertySet> mutableCopy() const; |
142 PassRefPtr<StylePropertySet> immutableCopyIfNeeded() const; | 142 PassRefPtr<StylePropertySet> immutableCopyIfNeeded() const; |
143 | 143 |
144 void removeEquivalentProperties(const StylePropertySet*); | 144 void removeEquivalentProperties(const StylePropertySet*); |
145 void removeEquivalentProperties(const CSSStyleDeclaration*); | 145 void removeEquivalentProperties(const CSSStyleDeclaration*); |
146 | 146 |
147 PassRefPtr<StylePropertySet> copyPropertiesInSet(const Vector<CSSPropertyID>
&) const; | 147 PassRefPtr<MutableStylePropertySet> copyPropertiesInSet(const Vector<CSSProp
ertyID>&) const; |
148 | 148 |
149 String asText() const; | 149 String asText() const; |
150 | 150 |
151 PropertySetCSSStyleDeclaration* cssStyleDeclaration(); | 151 PropertySetCSSStyleDeclaration* cssStyleDeclaration(); |
152 CSSStyleDeclaration* ensureCSSStyleDeclaration(); | 152 CSSStyleDeclaration* ensureCSSStyleDeclaration(); |
153 CSSStyleDeclaration* ensureInlineCSSStyleDeclaration(const StyledElement* pa
rentElement); | 153 CSSStyleDeclaration* ensureInlineCSSStyleDeclaration(const StyledElement* pa
rentElement); |
154 | 154 |
155 bool isMutable() const { return m_isMutable; } | 155 bool isMutable() const { return m_isMutable; } |
156 bool hasCSSOMWrapper() const { return m_ownsCSSOMWrapper; } | 156 bool hasCSSOMWrapper() const { return m_ownsCSSOMWrapper; } |
157 | 157 |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 | 265 |
266 if (m_isMutable) | 266 if (m_isMutable) |
267 delete static_cast<MutableStylePropertySet*>(this); | 267 delete static_cast<MutableStylePropertySet*>(this); |
268 else | 268 else |
269 delete static_cast<ImmutableStylePropertySet*>(this); | 269 delete static_cast<ImmutableStylePropertySet*>(this); |
270 } | 270 } |
271 | 271 |
272 } // namespace WebCore | 272 } // namespace WebCore |
273 | 273 |
274 #endif // StylePropertySet_h | 274 #endif // StylePropertySet_h |
OLD | NEW |