| 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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 PropertySetCSSStyleDeclaration* cssStyleDeclaration(); | 185 PropertySetCSSStyleDeclaration* cssStyleDeclaration(); |
| 186 | 186 |
| 187 void addParsedProperties(const Vector<CSSProperty>&); | 187 void addParsedProperties(const Vector<CSSProperty>&); |
| 188 void addParsedProperty(const CSSProperty&); | 188 void addParsedProperty(const CSSProperty&); |
| 189 | 189 |
| 190 // These expand shorthand properties into multiple properties. | 190 // These expand shorthand properties into multiple properties. |
| 191 bool setProperty(CSSPropertyID, const String& value, bool important = false,
StyleSheetContents* contextStyleSheet = 0); | 191 bool setProperty(CSSPropertyID, const String& value, bool important = false,
StyleSheetContents* contextStyleSheet = 0); |
| 192 void setProperty(CSSPropertyID, PassRefPtr<CSSValue>, bool important = false
); | 192 void setProperty(CSSPropertyID, PassRefPtr<CSSValue>, bool important = false
); |
| 193 | 193 |
| 194 // These do not. FIXME: This is too messy, we can do better. | 194 // These do not. FIXME: This is too messy, we can do better. |
| 195 bool setProperty(CSSPropertyID, int identifier, bool important = false); | 195 bool setProperty(CSSPropertyID, CSSValueID identifier, bool important = fals
e); |
| 196 bool setProperty(CSSPropertyID, CSSPropertyID identifier, bool important = f
alse); |
| 196 void appendPrefixingVariantProperty(const CSSProperty&); | 197 void appendPrefixingVariantProperty(const CSSProperty&); |
| 197 void setPrefixingVariantProperty(const CSSProperty&); | 198 void setPrefixingVariantProperty(const CSSProperty&); |
| 198 void setProperty(const CSSProperty&, CSSProperty* slot = 0); | 199 void setProperty(const CSSProperty&, CSSProperty* slot = 0); |
| 199 | 200 |
| 200 bool removeProperty(CSSPropertyID, String* returnText = 0); | 201 bool removeProperty(CSSPropertyID, String* returnText = 0); |
| 201 void removePrefixedOrUnprefixedProperty(CSSPropertyID); | 202 void removePrefixedOrUnprefixedProperty(CSSPropertyID); |
| 202 void removeBlockProperties(); | 203 void removeBlockProperties(); |
| 203 bool removePropertiesInSet(const CSSPropertyID* set, unsigned length); | 204 bool removePropertiesInSet(const CSSPropertyID* set, unsigned length); |
| 204 void removeEquivalentProperties(const StylePropertySet*); | 205 void removeEquivalentProperties(const StylePropertySet*); |
| 205 void removeEquivalentProperties(const CSSStyleDeclaration*); | 206 void removeEquivalentProperties(const CSSStyleDeclaration*); |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 | 259 |
| 259 if (m_isMutable) | 260 if (m_isMutable) |
| 260 delete static_cast<MutableStylePropertySet*>(this); | 261 delete static_cast<MutableStylePropertySet*>(this); |
| 261 else | 262 else |
| 262 delete static_cast<ImmutableStylePropertySet*>(this); | 263 delete static_cast<ImmutableStylePropertySet*>(this); |
| 263 } | 264 } |
| 264 | 265 |
| 265 } // namespace WebCore | 266 } // namespace WebCore |
| 266 | 267 |
| 267 #endif // StylePropertySet_h | 268 #endif // StylePropertySet_h |
| OLD | NEW |