Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2021)

Side by Side Diff: third_party/WebKit/Source/core/css/StylePropertySet.h

Issue 2323633002: Implement animation tainted custom property values (Closed)
Patch Set: Rebased Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698