| Index: Source/core/animation/LengthStyleInterpolation.cpp
|
| diff --git a/Source/core/animation/LengthStyleInterpolation.cpp b/Source/core/animation/LengthStyleInterpolation.cpp
|
| index bc973808d28a07be77bf0178592ba2783e16f889..fb929296d23a8784611018d1ebc20ea114097f1b 100644
|
| --- a/Source/core/animation/LengthStyleInterpolation.cpp
|
| +++ b/Source/core/animation/LengthStyleInterpolation.cpp
|
| @@ -51,10 +51,10 @@ bool pixelsForKeyword(CSSPropertyID property, CSSValueID valueID, double& result
|
|
|
| } // namespace
|
|
|
| -bool LengthStyleInterpolation::canCreateFrom(const CSSValue value, CSSPropertyID property)
|
| +bool LengthStyleInterpolation::canCreateFrom(const CSSValue& value, CSSPropertyID property)
|
| {
|
| if (value.isPrimitiveValue()) {
|
| - const CSSPrimitiveValue primitiveValue = toCSSPrimitiveValue(value);
|
| + const CSSPrimitiveValue& primitiveValue = toCSSPrimitiveValue(value);
|
| if (primitiveValue.cssCalcValue())
|
| return true;
|
|
|
| @@ -71,14 +71,14 @@ bool LengthStyleInterpolation::canCreateFrom(const CSSValue value, CSSPropertyID
|
| return value.isCalcValue();
|
| }
|
|
|
| -PassOwnPtrWillBeRawPtr<InterpolableValue> LengthStyleInterpolation::toInterpolableValue(const CSSValue value, CSSPropertyID id)
|
| +PassOwnPtrWillBeRawPtr<InterpolableValue> LengthStyleInterpolation::toInterpolableValue(const CSSValue& value, CSSPropertyID id)
|
| {
|
| ASSERT(canCreateFrom(value, id));
|
| OwnPtrWillBeRawPtr<InterpolableList> listOfValuesAndTypes = InterpolableList::create(2);
|
| OwnPtrWillBeRawPtr<InterpolableList> listOfValues = InterpolableList::create(CSSPrimitiveValue::LengthUnitTypeCount);
|
| OwnPtrWillBeRawPtr<InterpolableList> listOfTypes = InterpolableList::create(CSSPrimitiveValue::LengthUnitTypeCount);
|
|
|
| - const CSSPrimitiveValue primitive = toCSSPrimitiveValue(value);
|
| + const CSSPrimitiveValue& primitive = toCSSPrimitiveValue(value);
|
|
|
| CSSLengthArray arrayOfValues;
|
| CSSPrimitiveValue::CSSLengthTypeArray arrayOfTypes;
|
|
|