| Index: Source/core/animation/DoubleStyleInterpolation.cpp
|
| diff --git a/Source/core/animation/DoubleStyleInterpolation.cpp b/Source/core/animation/DoubleStyleInterpolation.cpp
|
| index ad1989e06916a0225d1e66a0b3aa83a554848849..685c46ea8610db90bf5280fa67804d45eef7aa97 100644
|
| --- a/Source/core/animation/DoubleStyleInterpolation.cpp
|
| +++ b/Source/core/animation/DoubleStyleInterpolation.cpp
|
| @@ -15,7 +15,7 @@ bool DoubleStyleInterpolation::canCreateFrom(const CSSValue& value)
|
| return value.isPrimitiveValue() && (toCSSPrimitiveValue(value).isNumber() || toCSSPrimitiveValue(value).isAngle());
|
| }
|
|
|
| -PassOwnPtrWillBeRawPtr<InterpolableValue> DoubleStyleInterpolation::doubleToInterpolableValue(const CSSValue& value)
|
| +InterpolableValue* DoubleStyleInterpolation::doubleToInterpolableValue(const CSSValue& value)
|
| {
|
| ASSERT(canCreateFrom(value));
|
| const CSSPrimitiveValue& primitive = toCSSPrimitiveValue(value);
|
| @@ -123,7 +123,7 @@ PassRefPtrWillBeRawPtr<CSSValue> DoubleStyleInterpolation::interpolableValueToMo
|
| return list.release();
|
| }
|
|
|
| -PassOwnPtrWillBeRawPtr<InterpolableValue> DoubleStyleInterpolation::motionRotationToInterpolableValue(const CSSValue& value)
|
| +InterpolableValue* DoubleStyleInterpolation::motionRotationToInterpolableValue(const CSSValue& value)
|
| {
|
| float rotation;
|
| MotionRotationType rotationType;
|
| @@ -132,7 +132,7 @@ PassOwnPtrWillBeRawPtr<InterpolableValue> DoubleStyleInterpolation::motionRotati
|
| return InterpolableNumber::create(rotation);
|
| }
|
|
|
| -PassRefPtrWillBeRawPtr<DoubleStyleInterpolation> DoubleStyleInterpolation::maybeCreateFromMotionRotation(const CSSValue& start, const CSSValue& end, CSSPropertyID id)
|
| +DoubleStyleInterpolation* DoubleStyleInterpolation::maybeCreateFromMotionRotation(const CSSValue& start, const CSSValue& end, CSSPropertyID id)
|
| {
|
| float startRotation, endRotation;
|
| MotionRotationType startRotationType, endRotationType;
|
| @@ -142,10 +142,7 @@ PassRefPtrWillBeRawPtr<DoubleStyleInterpolation> DoubleStyleInterpolation::maybe
|
| || startRotationType != endRotationType)
|
| return nullptr;
|
|
|
| - return adoptRefWillBeNoop(new DoubleStyleInterpolation(
|
| - motionRotationToInterpolableValue(start),
|
| - motionRotationToInterpolableValue(end),
|
| - id, true, InterpolationRange::RangeAll, startRotationType == MotionRotationAuto));
|
| + return new DoubleStyleInterpolation(motionRotationToInterpolableValue(start), motionRotationToInterpolableValue(end), id, true, InterpolationRange::RangeAll, startRotationType == MotionRotationAuto);
|
| }
|
|
|
| }
|
|
|