Index: Source/core/animation/IntegerOptionalIntegerSVGInterpolation.cpp |
diff --git a/Source/core/animation/IntegerOptionalIntegerSVGInterpolation.cpp b/Source/core/animation/IntegerOptionalIntegerSVGInterpolation.cpp |
index 3b559b0e80443a8216943363cb9bd52898ea3bb4..60991b26f59fac4c2c5173bd64a751a1075770c7 100644 |
--- a/Source/core/animation/IntegerOptionalIntegerSVGInterpolation.cpp |
+++ b/Source/core/animation/IntegerOptionalIntegerSVGInterpolation.cpp |
@@ -20,21 +20,19 @@ PassRefPtrWillBeRawPtr<SVGInteger> toPositiveInteger(const InterpolableValue* nu |
} // namespace |
-PassOwnPtrWillBeRawPtr<InterpolableValue> IntegerOptionalIntegerSVGInterpolation::toInterpolableValue(SVGPropertyBase* value) |
+InterpolableValue* IntegerOptionalIntegerSVGInterpolation::toInterpolableValue(SVGPropertyBase* value) |
{ |
RefPtrWillBeRawPtr<SVGIntegerOptionalInteger> integerOptionalInteger = toSVGIntegerOptionalInteger(value); |
- OwnPtrWillBeRawPtr<InterpolableList> result = InterpolableList::create(2); |
+ InterpolableList* result = InterpolableList::create(2); |
result->set(0, InterpolableNumber::create(integerOptionalInteger->firstInteger()->value())); |
result->set(1, InterpolableNumber::create(integerOptionalInteger->secondInteger()->value())); |
- return result.release(); |
+ return result; |
} |
PassRefPtrWillBeRawPtr<SVGIntegerOptionalInteger> IntegerOptionalIntegerSVGInterpolation::fromInterpolableValue(const InterpolableValue& value, int min) |
{ |
const InterpolableList& list = toInterpolableList(value); |
- return SVGIntegerOptionalInteger::create( |
- toPositiveInteger(list.get(0), min), |
- toPositiveInteger(list.get(1), min)); |
+ return SVGIntegerOptionalInteger::create(toPositiveInteger(list.get(0), min), toPositiveInteger(list.get(1), min)); |
} |
} |