Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(360)

Unified Diff: Source/core/animation/NumberOptionalNumberSVGInterpolation.h

Issue 1120003002: [Oilpan] Migrate most classes under core/animations to Oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/animation/NonInterpolableValue.h ('k') | Source/core/animation/NumberSVGInterpolation.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « Source/core/animation/NonInterpolableValue.h ('k') | Source/core/animation/NumberSVGInterpolation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698