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

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

Issue 2703593004: Support animating <number> custom properties (Closed)
Patch Set: Created 3 years, 10 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/animation/CSSInterpolationTypesMap.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSInterpolationTypesMap.cpp b/third_party/WebKit/Source/core/animation/CSSInterpolationTypesMap.cpp
index e77d94e5ff6899fa982a9ca767d95bfd40806908..57cd28bad1dd5a99b47189030b03c7fa2159a135 100644
--- a/third_party/WebKit/Source/core/animation/CSSInterpolationTypesMap.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSInterpolationTypesMap.cpp
@@ -346,6 +346,8 @@ CSSInterpolationTypesMap::createCSSInterpolationTypesForSyntax(
result.push_back(WTF::makeUnique<CSSLengthInterpolationType>(property));
break;
case CSSSyntaxType::Number:
+ result.push_back(WTF::makeUnique<CSSNumberInterpolationType>(property));
+ break;
case CSSSyntaxType::Percentage:
case CSSSyntaxType::LengthPercentage:
case CSSSyntaxType::Image:

Powered by Google App Engine
This is Rietveld 408576698