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

Unified Diff: third_party/WebKit/Source/core/css/PropertySetCSSStyleDeclaration.cpp

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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/css/PropertySetCSSStyleDeclaration.cpp
diff --git a/third_party/WebKit/Source/core/css/PropertySetCSSStyleDeclaration.cpp b/third_party/WebKit/Source/core/css/PropertySetCSSStyleDeclaration.cpp
index 38889d1b8f0c1327f5b0e24c2888ba120f41837d..91429e4795d1ec87cc095758766caea1dc8bcc4b 100644
--- a/third_party/WebKit/Source/core/css/PropertySetCSSStyleDeclaration.cpp
+++ b/third_party/WebKit/Source/core/css/PropertySetCSSStyleDeclaration.cpp
@@ -300,12 +300,15 @@ void AbstractPropertySetCSSStyleDeclaration::setPropertyInternal(
willMutate();
bool changed = false;
- if (unresolvedProperty == CSSPropertyVariable)
+ if (unresolvedProperty == CSSPropertyVariable) {
+ bool isAnimationTainted = isKeyframeStyle();
changed = propertySet().setProperty(AtomicString(customPropertyName), value,
- important, contextStyleSheet());
- else
+ important, contextStyleSheet(),
+ isAnimationTainted);
+ } else {
changed = propertySet().setProperty(unresolvedProperty, value, important,
contextStyleSheet());
+ }
didMutate(changed ? PropertyChanged : NoChanges);

Powered by Google App Engine
This is Rietveld 408576698