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

Unified Diff: Source/core/animation/IntegerOptionalIntegerSVGInterpolation.cpp

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/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));
}
}
« no previous file with comments | « Source/core/animation/IntegerOptionalIntegerSVGInterpolation.h ('k') | Source/core/animation/IntegerSVGInterpolation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698