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

Unified Diff: Source/core/animation/LengthPairStyleInterpolation.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/LengthPairStyleInterpolation.cpp
diff --git a/Source/core/animation/LengthPairStyleInterpolation.cpp b/Source/core/animation/LengthPairStyleInterpolation.cpp
index 4996158d7cdc8665d889500394e1af2be4222844..f8d8142c38fab9f77fe645c3845a6dfe0ed44fc5 100644
--- a/Source/core/animation/LengthPairStyleInterpolation.cpp
+++ b/Source/core/animation/LengthPairStyleInterpolation.cpp
@@ -16,15 +16,15 @@ bool LengthPairStyleInterpolation::canCreateFrom(const CSSValue& value)
return value.isPrimitiveValue() && toCSSPrimitiveValue(value).getPairValue();
}
-PassOwnPtrWillBeRawPtr<InterpolableValue> LengthPairStyleInterpolation::lengthPairToInterpolableValue(const CSSValue& value)
+InterpolableValue* LengthPairStyleInterpolation::lengthPairToInterpolableValue(const CSSValue& value)
{
- OwnPtrWillBeRawPtr<InterpolableList> result = InterpolableList::create(2);
+ InterpolableList* result = InterpolableList::create(2);
Pair* pair = toCSSPrimitiveValue(value).getPairValue();
ASSERT(pair);
result->set(0, LengthStyleInterpolation::toInterpolableValue(*pair->first()));
result->set(1, LengthStyleInterpolation::toInterpolableValue(*pair->second()));
- return result.release();
+ return result;
}
PassRefPtrWillBeRawPtr<CSSValue> LengthPairStyleInterpolation::interpolableValueToLengthPair(InterpolableValue* value, InterpolationRange range)
« no previous file with comments | « Source/core/animation/LengthPairStyleInterpolation.h ('k') | Source/core/animation/LengthPairStyleInterpolationTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698