Index: Source/core/animation/DoubleStyleInterpolation.cpp |
diff --git a/Source/core/animation/DoubleStyleInterpolation.cpp b/Source/core/animation/DoubleStyleInterpolation.cpp |
index dae100d3ca9a70cdef4d673598c200ee356e6706..4231572bddba9b0b2bc80f049e3271fb89f947ba 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); |
@@ -78,7 +78,7 @@ DEFINE_TRACE(DoubleStyleInterpolation) |
StyleInterpolation::trace(visitor); |
} |
-PassOwnPtrWillBeRawPtr<InterpolableValue> DoubleStyleInterpolation::toInterpolableValue(const CSSValue& value, CSSPropertyID property) |
+InterpolableValue* DoubleStyleInterpolation::toInterpolableValue(const CSSValue& value, CSSPropertyID property) |
{ |
ASSERT(canCreateFrom(value)); |
return doubleToInterpolableValue(value); |
@@ -132,7 +132,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; |
@@ -141,7 +141,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; |
@@ -151,10 +151,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); |
} |
} |