Index: Source/core/animation/NumberOptionalNumberSVGInterpolation.h |
diff --git a/Source/core/animation/NumberOptionalNumberSVGInterpolation.h b/Source/core/animation/NumberOptionalNumberSVGInterpolation.h |
index 37d72cdd246a5502ab4a4f6130b95b1415fdeade..14e66ef700e1efc02d08050904fd1786c0d210e0 100644 |
--- a/Source/core/animation/NumberOptionalNumberSVGInterpolation.h |
+++ b/Source/core/animation/NumberOptionalNumberSVGInterpolation.h |
@@ -15,9 +15,9 @@ class SVGNumberOptionalNumber; |
class NumberOptionalNumberSVGInterpolation : public SVGInterpolation { |
public: |
- static PassRefPtrWillBeRawPtr<NumberOptionalNumberSVGInterpolation> create(SVGPropertyBase* start, SVGPropertyBase* end, PassRefPtrWillBeRawPtr<SVGAnimatedPropertyBase> attribute) |
+ static NumberOptionalNumberSVGInterpolation* create(SVGPropertyBase* start, SVGPropertyBase* end, PassRefPtrWillBeRawPtr<SVGAnimatedPropertyBase> attribute) |
{ |
- return adoptRefWillBeNoop(new NumberOptionalNumberSVGInterpolation(toInterpolableValue(start), toInterpolableValue(end), attribute)); |
+ return new NumberOptionalNumberSVGInterpolation(toInterpolableValue(start), toInterpolableValue(end), attribute); |
} |
PassRefPtrWillBeRawPtr<SVGPropertyBase> interpolatedValue(SVGElement&) const final |
@@ -31,18 +31,18 @@ public: |
} |
private: |
- NumberOptionalNumberSVGInterpolation(PassOwnPtrWillBeRawPtr<InterpolableValue> start, PassOwnPtrWillBeRawPtr<InterpolableValue> end, PassRefPtrWillBeRawPtr<SVGAnimatedPropertyBase> attribute) |
+ NumberOptionalNumberSVGInterpolation(InterpolableValue* start, InterpolableValue* end, PassRefPtrWillBeRawPtr<SVGAnimatedPropertyBase> attribute) |
: SVGInterpolation(start, end, attribute) |
{ |
} |
- static PassOwnPtrWillBeRawPtr<InterpolableValue> toInterpolableValue(SVGPropertyBase* value) |
+ static InterpolableValue* toInterpolableValue(SVGPropertyBase* value) |
{ |
RefPtrWillBeRawPtr<SVGNumberOptionalNumber> numberOptionalNumber = toSVGNumberOptionalNumber(value); |
- OwnPtrWillBeRawPtr<InterpolableList> result = InterpolableList::create(2); |
+ InterpolableList* result = InterpolableList::create(2); |
result->set(0, InterpolableNumber::create(numberOptionalNumber->firstNumber()->value())); |
result->set(1, InterpolableNumber::create(numberOptionalNumber->secondNumber()->value())); |
- return result.release(); |
+ return result; |
} |
static PassRefPtrWillBeRawPtr<SVGNumberOptionalNumber> fromInterpolableValue(const InterpolableValue& value) |