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

Unified Diff: third_party/WebKit/Source/core/animation/EffectInput.cpp

Issue 2324963003: Store custom properties specified in element.animate() (Closed)
Patch Set: Rebased Created 4 years, 3 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
« no previous file with comments | « third_party/WebKit/Source/core/animation/AnimationInputHelpersTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/animation/EffectInput.cpp
diff --git a/third_party/WebKit/Source/core/animation/EffectInput.cpp b/third_party/WebKit/Source/core/animation/EffectInput.cpp
index cbfb6a3f4719e04765f46656e6116513abe1ea5b..af99d1722f7a59ccd1a7d19c8c39002e2683fbb6 100644
--- a/third_party/WebKit/Source/core/animation/EffectInput.cpp
+++ b/third_party/WebKit/Source/core/animation/EffectInput.cpp
@@ -83,7 +83,10 @@ void setKeyframeValue(Element& element, StringKeyframe& keyframe, const String&
StyleSheetContents* styleSheetContents = element.document().elementSheet().contents();
CSSPropertyID cssProperty = AnimationInputHelpers::keyframeAttributeToCSSProperty(property, element.document());
if (cssProperty != CSSPropertyInvalid) {
- keyframe.setCSSPropertyValue(cssProperty, value, styleSheetContents);
+ if (cssProperty == CSSPropertyVariable)
+ keyframe.setCSSPropertyValue(AtomicString(property), value, styleSheetContents);
+ else
+ keyframe.setCSSPropertyValue(cssProperty, value, styleSheetContents);
return;
}
cssProperty = AnimationInputHelpers::keyframeAttributeToPresentationAttribute(property, element);
« no previous file with comments | « third_party/WebKit/Source/core/animation/AnimationInputHelpersTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698