| Index: Source/core/animation/ShadowStyleInterpolation.cpp
|
| diff --git a/Source/core/animation/ShadowStyleInterpolation.cpp b/Source/core/animation/ShadowStyleInterpolation.cpp
|
| index adf267e4beaffaba402b1f72f1db82382fa49495..b72c8be798e7665155b988fe313749c6bae13acb 100644
|
| --- a/Source/core/animation/ShadowStyleInterpolation.cpp
|
| +++ b/Source/core/animation/ShadowStyleInterpolation.cpp
|
| @@ -21,7 +21,7 @@ bool ShadowStyleInterpolation::canCreateFrom(const CSSValue& start, const CSSVal
|
| && toCSSShadowValue(start).color && toCSSShadowValue(end).color;
|
| }
|
|
|
| -PassOwnPtrWillBeRawPtr<InterpolableValue> ShadowStyleInterpolation::lengthToInterpolableValue(NullableCSSValue value)
|
| +PassOwnPtrWillBeRawPtr<InterpolableValue> ShadowStyleInterpolation::lengthToInterpolableValue(const NullableCSSValue& value)
|
| {
|
| if (value)
|
| return LengthStyleInterpolation::toInterpolableValue(*value);
|
| @@ -52,10 +52,10 @@ PassOwnPtrWillBeRawPtr<InterpolableValue> ShadowStyleInterpolation::toInterpolab
|
| CSSValue ShadowStyleInterpolation::fromInterpolableValue(const InterpolableValue& value, NonInterpolableType nonInterpolableData, InterpolationRange range)
|
| {
|
| const InterpolableList* shadow = toInterpolableList(&value);
|
| - CSSPrimitiveValue x = LengthStyleInterpolation::fromInterpolableValue(*shadow->get(0), RangeAll);
|
| - CSSPrimitiveValue y = LengthStyleInterpolation::fromInterpolableValue(*shadow->get(1), RangeAll);
|
| - CSSPrimitiveValue blur = LengthStyleInterpolation::fromInterpolableValue(*shadow->get(2), RangeNonNegative);
|
| - CSSPrimitiveValue spread = LengthStyleInterpolation::fromInterpolableValue(*shadow->get(3), RangeAll);
|
| + const CSSPrimitiveValue& x = LengthStyleInterpolation::fromInterpolableValue(*shadow->get(0), RangeAll);
|
| + const CSSPrimitiveValue& y = LengthStyleInterpolation::fromInterpolableValue(*shadow->get(1), RangeAll);
|
| + const CSSPrimitiveValue& blur = LengthStyleInterpolation::fromInterpolableValue(*shadow->get(2), RangeNonNegative);
|
| + const CSSPrimitiveValue& spread = LengthStyleInterpolation::fromInterpolableValue(*shadow->get(3), RangeAll);
|
|
|
| CSSPrimitiveValue color = ColorStyleInterpolation::interpolableValueToColor(*shadow->get(4));
|
| CSSPrimitiveValue style = nonInterpolableData ? CSSPrimitiveValue::createIdentifier(CSSValueInset) : CSSPrimitiveValue::createIdentifier(CSSValueNone);
|
|
|