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

Unified Diff: third_party/WebKit/Source/core/animation/CSSNumberInterpolationType.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
« no previous file with comments | « third_party/WebKit/Source/core/animation/CSSNumberInterpolationType.h ('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/CSSNumberInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSNumberInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSNumberInterpolationType.cpp
index 03954520d96541405d0015c69f3cadd1a917f976..3f9dca284d88c4a7cb146d123f22935dab599da1 100644
--- a/third_party/WebKit/Source/core/animation/CSSNumberInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSNumberInterpolationType.cpp
@@ -36,6 +36,14 @@ class InheritedNumberChecker : public InterpolationType::ConversionChecker {
const double m_number;
};
+const CSSValue* CSSNumberInterpolationType::createCSSValue(
+ const InterpolableValue& value,
+ const NonInterpolableValue*,
+ const StyleResolverState&) const {
+ return CSSPrimitiveValue::create(toInterpolableNumber(value).value(),
+ CSSPrimitiveValue::UnitType::Number);
+}
+
InterpolationValue CSSNumberInterpolationType::createNumberValue(
double number) const {
return InterpolationValue(InterpolableNumber::create(number));
« no previous file with comments | « third_party/WebKit/Source/core/animation/CSSNumberInterpolationType.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698