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

Unified Diff: Source/core/animation/NumberSVGInterpolation.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
Index: Source/core/animation/NumberSVGInterpolation.h
diff --git a/Source/core/animation/NumberSVGInterpolation.h b/Source/core/animation/NumberSVGInterpolation.h
index 61ab110d9eb4b1a9a4cf3cda7c70da7c1f272406..f9195926214b16258f979be76410414f32af7c35 100644
--- a/Source/core/animation/NumberSVGInterpolation.h
+++ b/Source/core/animation/NumberSVGInterpolation.h
@@ -21,9 +21,9 @@ public:
typedef SVGNumberList ListType;
typedef void NonInterpolableType;
- static PassRefPtrWillBeRawPtr<NumberSVGInterpolation> create(SVGPropertyBase* start, SVGPropertyBase* end, PassRefPtrWillBeRawPtr<SVGAnimatedPropertyBase> attribute, SVGNumberNegativeValuesMode negativeValuesMode)
+ static NumberSVGInterpolation* create(SVGPropertyBase* start, SVGPropertyBase* end, PassRefPtrWillBeRawPtr<SVGAnimatedPropertyBase> attribute, SVGNumberNegativeValuesMode negativeValuesMode)
{
- return adoptRefWillBeNoop(new NumberSVGInterpolation(toInterpolableValue(start), toInterpolableValue(end), attribute, negativeValuesMode));
+ return new NumberSVGInterpolation(toInterpolableValue(start), toInterpolableValue(end), attribute, negativeValuesMode);
}
static bool canCreateFrom(SVGPropertyBase* value)
@@ -41,7 +41,7 @@ public:
SVGInterpolation::trace(visitor);
}
- static PassOwnPtrWillBeRawPtr<InterpolableNumber> toInterpolableValue(SVGPropertyBase* value)
+ static InterpolableNumber* toInterpolableValue(SVGPropertyBase* value)
{
return InterpolableNumber::create(toSVGNumber(value)->value());
}
@@ -49,7 +49,7 @@ public:
static PassRefPtrWillBeRawPtr<SVGNumber> fromInterpolableValue(const InterpolableValue&, SVGNumberNegativeValuesMode = AllowNegativeNumbers);
private:
- NumberSVGInterpolation(PassOwnPtrWillBeRawPtr<InterpolableValue> start, PassOwnPtrWillBeRawPtr<InterpolableValue> end, PassRefPtrWillBeRawPtr<SVGAnimatedPropertyBase> attribute, SVGNumberNegativeValuesMode negativeValuesMode)
+ NumberSVGInterpolation(InterpolableValue* start, InterpolableValue* end, PassRefPtrWillBeRawPtr<SVGAnimatedPropertyBase> attribute, SVGNumberNegativeValuesMode negativeValuesMode)
: SVGInterpolation(start, end, attribute)
, m_negativeValuesMode(negativeValuesMode)
{
« no previous file with comments | « Source/core/animation/NumberOptionalNumberSVGInterpolation.h ('k') | Source/core/animation/PathSVGInterpolation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698