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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 | 190 |
191 unsigned propertyCount() const { return m_propertyVector.size(); } | 191 unsigned propertyCount() const { return m_propertyVector.size(); } |
192 | 192 |
193 // Returns whether this style set was changed. | 193 // Returns whether this style set was changed. |
194 bool addParsedProperties(const WillBeHeapVector<CSSProperty, 256>&); | 194 bool addParsedProperties(const WillBeHeapVector<CSSProperty, 256>&); |
195 bool addRespectingCascade(const CSSProperty&); | 195 bool addRespectingCascade(const CSSProperty&); |
196 | 196 |
197 // These expand shorthand properties into multiple properties. | 197 // These expand shorthand properties into multiple properties. |
198 bool setProperty(CSSPropertyID unresolvedProperty, const String& value, bool
important = false, StyleSheetContents* contextStyleSheet = 0); | 198 bool setProperty(CSSPropertyID unresolvedProperty, const String& value, bool
important = false, StyleSheetContents* contextStyleSheet = 0); |
199 void setProperty(CSSPropertyID, CSSValue, bool important = false); | 199 void setProperty(CSSPropertyID, CSSValue, bool important = false); |
| 200 void setProperty(CSSPropertyID, CSSPrimitiveValue, bool important = false); |
200 | 201 |
201 // These do not. FIXME: This is too messy, we can do better. | 202 // These do not. FIXME: This is too messy, we can do better. |
202 bool setProperty(CSSPropertyID, CSSValueID identifier, bool important = fals
e); | 203 bool setProperty(CSSPropertyID, CSSValueID identifier, bool important = fals
e); |
203 bool setProperty(const CSSProperty&, CSSProperty* slot = 0); | 204 bool setProperty(const CSSProperty&, CSSProperty* slot = 0); |
204 | 205 |
205 bool removeProperty(CSSPropertyID, String* returnText = 0); | 206 bool removeProperty(CSSPropertyID, String* returnText = 0); |
206 bool removePropertiesInSet(const CSSPropertyID* set, unsigned length); | 207 bool removePropertiesInSet(const CSSPropertyID* set, unsigned length); |
207 void removeEquivalentProperties(const StylePropertySet*); | 208 void removeEquivalentProperties(const StylePropertySet*); |
208 void removeEquivalentProperties(const CSSStyleDeclaration*); | 209 void removeEquivalentProperties(const CSSStyleDeclaration*); |
209 | 210 |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 inline int StylePropertySet::findPropertyIndex(CSSPropertyID propertyID) const | 291 inline int StylePropertySet::findPropertyIndex(CSSPropertyID propertyID) const |
291 { | 292 { |
292 if (m_isMutable) | 293 if (m_isMutable) |
293 return toMutableStylePropertySet(this)->findPropertyIndex(propertyID); | 294 return toMutableStylePropertySet(this)->findPropertyIndex(propertyID); |
294 return toImmutableStylePropertySet(this)->findPropertyIndex(propertyID); | 295 return toImmutableStylePropertySet(this)->findPropertyIndex(propertyID); |
295 } | 296 } |
296 | 297 |
297 } // namespace blink | 298 } // namespace blink |
298 | 299 |
299 #endif // StylePropertySet_h | 300 #endif // StylePropertySet_h |
OLD | NEW |