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

Unified Diff: third_party/WebKit/Source/core/animation/LengthInterpolationFunctions.h

Issue 2658333003: Add smooth interpolation support for <length> custom properties (Closed)
Patch Set: Created 3 years, 11 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/LengthInterpolationFunctions.h
diff --git a/third_party/WebKit/Source/core/animation/LengthInterpolationFunctions.h b/third_party/WebKit/Source/core/animation/LengthInterpolationFunctions.h
index 58006fcdd395ff569bf3335ba98303469b3bb0e0..04112fdbb1bf12da267ba1a6ac8f38de8a508ace 100644
--- a/third_party/WebKit/Source/core/animation/LengthInterpolationFunctions.h
+++ b/third_party/WebKit/Source/core/animation/LengthInterpolationFunctions.h
@@ -39,6 +39,12 @@ class LengthInterpolationFunctions {
const CSSToLengthConversionData&,
ValueRange);
+ // Unlike createLength() this preserves all specificed unit types via calc()
+ // expressions.
+ static const CSSValue* createCSSValue(const InterpolableValue&,
+ const NonInterpolableValue*,
+ ValueRange);
+
static void subtractFromOneHundredPercent(InterpolationValue& result);
};

Powered by Google App Engine
This is Rietveld 408576698