| 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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 } | 170 } |
| 171 | 171 |
| 172 class MutableStylePropertySet : public StylePropertySet { | 172 class MutableStylePropertySet : public StylePropertySet { |
| 173 public: | 173 public: |
| 174 static PassRefPtr<MutableStylePropertySet> create(CSSParserMode = CSSQuirksM
ode); | 174 static PassRefPtr<MutableStylePropertySet> create(CSSParserMode = CSSQuirksM
ode); |
| 175 static PassRefPtr<MutableStylePropertySet> create(const CSSProperty* propert
ies, unsigned count); | 175 static PassRefPtr<MutableStylePropertySet> create(const CSSProperty* propert
ies, unsigned count); |
| 176 | 176 |
| 177 unsigned propertyCount() const { return m_propertyVector.size(); } | 177 unsigned propertyCount() const { return m_propertyVector.size(); } |
| 178 PropertySetCSSStyleDeclaration* cssStyleDeclaration(); | 178 PropertySetCSSStyleDeclaration* cssStyleDeclaration(); |
| 179 | 179 |
| 180 void addParsedProperties(const Vector<CSSProperty>&); | 180 void addParsedProperties(const Vector<CSSProperty, 256>&); |
| 181 void addParsedProperty(const CSSProperty&); | 181 void addParsedProperty(const CSSProperty&); |
| 182 | 182 |
| 183 // These expand shorthand properties into multiple properties. | 183 // These expand shorthand properties into multiple properties. |
| 184 bool setProperty(CSSPropertyID, const String& value, bool important = false,
StyleSheetContents* contextStyleSheet = 0); | 184 bool setProperty(CSSPropertyID, const String& value, bool important = false,
StyleSheetContents* contextStyleSheet = 0); |
| 185 void setProperty(CSSPropertyID, PassRefPtr<CSSValue>, bool important = false
); | 185 void setProperty(CSSPropertyID, PassRefPtr<CSSValue>, bool important = false
); |
| 186 | 186 |
| 187 // These do not. FIXME: This is too messy, we can do better. | 187 // These do not. FIXME: This is too messy, we can do better. |
| 188 bool setProperty(CSSPropertyID, CSSValueID identifier, bool important = fals
e); | 188 bool setProperty(CSSPropertyID, CSSValueID identifier, bool important = fals
e); |
| 189 bool setProperty(CSSPropertyID, CSSPropertyID identifier, bool important = f
alse); | 189 bool setProperty(CSSPropertyID, CSSPropertyID identifier, bool important = f
alse); |
| 190 void appendPrefixingVariantProperty(const CSSProperty&); | 190 void appendPrefixingVariantProperty(const CSSProperty&); |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 | 256 |
| 257 if (m_isMutable) | 257 if (m_isMutable) |
| 258 delete static_cast<MutableStylePropertySet*>(this); | 258 delete static_cast<MutableStylePropertySet*>(this); |
| 259 else | 259 else |
| 260 delete static_cast<ImmutableStylePropertySet*>(this); | 260 delete static_cast<ImmutableStylePropertySet*>(this); |
| 261 } | 261 } |
| 262 | 262 |
| 263 } // namespace WebCore | 263 } // namespace WebCore |
| 264 | 264 |
| 265 #endif // StylePropertySet_h | 265 #endif // StylePropertySet_h |
| OLD | NEW |