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 bool propertyIsImportant(CSSPropertyID) const; | 107 bool propertyIsImportant(CSSPropertyID) const; |
108 CSSPropertyID getPropertyShorthand(CSSPropertyID) const; | 108 CSSPropertyID getPropertyShorthand(CSSPropertyID) const; |
109 bool isPropertyImplicit(CSSPropertyID) const; | 109 bool isPropertyImplicit(CSSPropertyID) const; |
110 | 110 |
111 // These expand shorthand properties into multiple properties. | 111 // These expand shorthand properties into multiple properties. |
112 bool setProperty(CSSPropertyID, const String& value, bool important = false,
StyleSheetContents* contextStyleSheet = 0); | 112 bool setProperty(CSSPropertyID, const String& value, bool important = false,
StyleSheetContents* contextStyleSheet = 0); |
113 void setProperty(CSSPropertyID, PassRefPtr<CSSValue>, bool important = false
); | 113 void setProperty(CSSPropertyID, PassRefPtr<CSSValue>, bool important = false
); |
114 | 114 |
115 // These do not. FIXME: This is too messy, we can do better. | 115 // These do not. FIXME: This is too messy, we can do better. |
116 bool setProperty(CSSPropertyID, int identifier, bool important = false); | 116 bool setProperty(CSSPropertyID, int identifier, bool important = false); |
| 117 void appendPrefixingVariantProperty(const CSSProperty&); |
| 118 void setPrefixingVariantProperty(const CSSProperty&); |
117 void setProperty(const CSSProperty&, CSSProperty* slot = 0); | 119 void setProperty(const CSSProperty&, CSSProperty* slot = 0); |
118 | 120 |
119 bool removeProperty(CSSPropertyID, String* returnText = 0); | 121 bool removeProperty(CSSPropertyID, String* returnText = 0); |
| 122 void removePrefixedOrUnprefixedProperty(CSSPropertyID); |
120 | 123 |
121 void parseDeclaration(const String& styleDeclaration, StyleSheetContents* co
ntextStyleSheet); | 124 void parseDeclaration(const String& styleDeclaration, StyleSheetContents* co
ntextStyleSheet); |
122 | 125 |
123 void addParsedProperties(const Vector<CSSProperty>&); | 126 void addParsedProperties(const Vector<CSSProperty>&); |
124 void addParsedProperty(const CSSProperty&); | 127 void addParsedProperty(const CSSProperty&); |
125 | 128 |
126 void clear(); | 129 void clear(); |
127 PassRefPtr<StylePropertySet> copyBlockProperties() const; | 130 PassRefPtr<StylePropertySet> copyBlockProperties() const; |
128 void removeBlockProperties(); | 131 void removeBlockProperties(); |
129 bool removePropertiesInSet(const CSSPropertyID* set, unsigned length); | 132 bool removePropertiesInSet(const CSSPropertyID* set, unsigned length); |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 | 273 |
271 if (m_isMutable) | 274 if (m_isMutable) |
272 delete static_cast<MutableStylePropertySet*>(this); | 275 delete static_cast<MutableStylePropertySet*>(this); |
273 else | 276 else |
274 delete static_cast<ImmutableStylePropertySet*>(this); | 277 delete static_cast<ImmutableStylePropertySet*>(this); |
275 } | 278 } |
276 | 279 |
277 } // namespace WebCore | 280 } // namespace WebCore |
278 | 281 |
279 #endif // StylePropertySet_h | 282 #endif // StylePropertySet_h |
OLD | NEW |