| 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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 bool addParsedProperties(const HeapVector<CSSProperty, 256>&); | 212 bool addParsedProperties(const HeapVector<CSSProperty, 256>&); |
| 213 bool addRespectingCascade(const CSSProperty&); | 213 bool addRespectingCascade(const CSSProperty&); |
| 214 | 214 |
| 215 // These expand shorthand properties into multiple properties. | 215 // These expand shorthand properties into multiple properties. |
| 216 bool setProperty(CSSPropertyID unresolvedProperty, | 216 bool setProperty(CSSPropertyID unresolvedProperty, |
| 217 const String& value, | 217 const String& value, |
| 218 bool important = false, | 218 bool important = false, |
| 219 StyleSheetContents* contextStyleSheet = 0); | 219 StyleSheetContents* contextStyleSheet = 0); |
| 220 bool setProperty(const AtomicString& customPropertyName, | 220 bool setProperty(const AtomicString& customPropertyName, |
| 221 const String& value, | 221 const String& value, |
| 222 bool important = false, | 222 bool important, |
| 223 StyleSheetContents* contextStyleSheet = 0); | 223 StyleSheetContents* contextStyleSheet, |
| 224 bool isAnimationTainted); |
| 224 void setProperty(CSSPropertyID, const CSSValue&, bool important = false); | 225 void setProperty(CSSPropertyID, const CSSValue&, bool important = false); |
| 225 | 226 |
| 226 // These do not. FIXME: This is too messy, we can do better. | 227 // These do not. FIXME: This is too messy, we can do better. |
| 227 bool setProperty(CSSPropertyID, | 228 bool setProperty(CSSPropertyID, |
| 228 CSSValueID identifier, | 229 CSSValueID identifier, |
| 229 bool important = false); | 230 bool important = false); |
| 230 bool setProperty(const CSSProperty&, CSSProperty* slot = 0); | 231 bool setProperty(const CSSProperty&, CSSProperty* slot = 0); |
| 231 | 232 |
| 232 template <typename T> // CSSPropertyID or AtomicString | 233 template <typename T> // CSSPropertyID or AtomicString |
| 233 bool removeProperty(T property, String* returnText = 0); | 234 bool removeProperty(T property, String* returnText = 0); |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 template <typename T> | 317 template <typename T> |
| 317 inline int StylePropertySet::findPropertyIndex(T property) const { | 318 inline int StylePropertySet::findPropertyIndex(T property) const { |
| 318 if (m_isMutable) | 319 if (m_isMutable) |
| 319 return toMutableStylePropertySet(this)->findPropertyIndex(property); | 320 return toMutableStylePropertySet(this)->findPropertyIndex(property); |
| 320 return toImmutableStylePropertySet(this)->findPropertyIndex(property); | 321 return toImmutableStylePropertySet(this)->findPropertyIndex(property); |
| 321 } | 322 } |
| 322 | 323 |
| 323 } // namespace blink | 324 } // namespace blink |
| 324 | 325 |
| 325 #endif // StylePropertySet_h | 326 #endif // StylePropertySet_h |
| OLD | NEW |