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

Unified Diff: Source/core/animation/LengthPairStyleInterpolation.cpp

Issue 851633002: Animation: Add template for ListStyleInterpolation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add template for ListStyleInterpolation Created 5 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: Source/core/animation/LengthPairStyleInterpolation.cpp
diff --git a/Source/core/animation/LengthPairStyleInterpolation.cpp b/Source/core/animation/LengthPairStyleInterpolation.cpp
index b9c71a064f48bd3377087dad12efca80fd9d1f8b..d47c2df90c86983146bd5dd30862d98e06dac279 100644
--- a/Source/core/animation/LengthPairStyleInterpolation.cpp
+++ b/Source/core/animation/LengthPairStyleInterpolation.cpp
@@ -30,8 +30,8 @@ PassOwnPtrWillBeRawPtr<InterpolableValue> LengthPairStyleInterpolation::lengthPa
PassRefPtrWillBeRawPtr<CSSValue> LengthPairStyleInterpolation::interpolableValueToLengthPair(InterpolableValue* value, InterpolationRange range)
{
InterpolableList* lengthPair = toInterpolableList(value);
- RefPtrWillBeRawPtr<CSSPrimitiveValue> first = (LengthStyleInterpolation::interpolableValueToLength(lengthPair->get(0), range));
- RefPtrWillBeRawPtr<CSSPrimitiveValue> second = (LengthStyleInterpolation::interpolableValueToLength(lengthPair->get(1), range));
+ RefPtrWillBeRawPtr<CSSPrimitiveValue> first = (LengthStyleInterpolation::interpolableValueToLength(*lengthPair->get(0), range));
+ RefPtrWillBeRawPtr<CSSPrimitiveValue> second = (LengthStyleInterpolation::interpolableValueToLength(*lengthPair->get(1), range));
RefPtrWillBeRawPtr<Pair> result = Pair::create(first, second, Pair::KeepIdenticalValues);
return CSSPrimitiveValue::create(result.release());

Powered by Google App Engine
This is Rietveld 408576698