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

Unified Diff: Source/core/animation/FilterStyleInterpolation.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/FilterStyleInterpolation.cpp
diff --git a/Source/core/animation/FilterStyleInterpolation.cpp b/Source/core/animation/FilterStyleInterpolation.cpp
index 4d063c0778be3836c2aaa044ddff34b0c15a65b7..909b3a328d89e2e8986fcb0011255f8cd5c0b90f 100644
--- a/Source/core/animation/FilterStyleInterpolation.cpp
+++ b/Source/core/animation/FilterStyleInterpolation.cpp
@@ -60,7 +60,7 @@ PassRefPtrWillBeRawPtr<CSSValueList> extendFilterList(const CSSValueList& shortF
return result.release();
}
-PassRefPtrWillBeRawPtr<FilterStyleInterpolation::FilterListStyleInterpolation> maybeCreateFromList(const CSSValueList& startList, const CSSValueList& endList, CSSPropertyID property)
+FilterStyleInterpolation::FilterListStyleInterpolation* maybeCreateFromList(const CSSValueList& startList, const CSSValueList& endList, CSSPropertyID property)
{
if (startList.length() < endList.length())
return ListStyleInterpolation<FilterStyleInterpolation>::maybeCreateFromList(*extendFilterList(startList, endList), endList, property);
@@ -69,7 +69,7 @@ PassRefPtrWillBeRawPtr<FilterStyleInterpolation::FilterListStyleInterpolation> m
} // namespace
-PassRefPtrWillBeRawPtr<FilterStyleInterpolation::FilterListStyleInterpolation> FilterStyleInterpolation::maybeCreateList(const CSSValue& start, const CSSValue& end, CSSPropertyID property)
+FilterStyleInterpolation::FilterListStyleInterpolation* FilterStyleInterpolation::maybeCreateList(const CSSValue& start, const CSSValue& end, CSSPropertyID property)
{
if (start.isCSSWideKeyword() || end.isCSSWideKeyword())
return nullptr;
@@ -97,13 +97,13 @@ bool FilterStyleInterpolation::canCreateFrom(const CSSValue& start, const CSSVal
&& startFunctionType != CSSValueDropShadow;
}
-PassOwnPtrWillBeRawPtr<InterpolableValue> FilterStyleInterpolation::toInterpolableValue(const CSSValue& value, CSSValueID& functionType)
+InterpolableValue* FilterStyleInterpolation::toInterpolableValue(const CSSValue& value, CSSValueID& functionType)
{
const CSSFunctionValue& filterValue = toCSSFunctionValue(value);
functionType = filterValue.functionType();
size_t length = filterValue.length();
- OwnPtrWillBeRawPtr<InterpolableList> result = InterpolableList::create(length);
+ InterpolableList* result = InterpolableList::create(length);
for (size_t i = 0; i < length; ++i) {
switch (functionType) {
case CSSValueHueRotate:
@@ -127,7 +127,7 @@ PassOwnPtrWillBeRawPtr<InterpolableValue> FilterStyleInterpolation::toInterpolab
ASSERT_NOT_REACHED();
}
}
- return result.release();
+ return result;
}
PassRefPtrWillBeRawPtr<CSSFunctionValue> FilterStyleInterpolation::fromInterpolableValue(const InterpolableValue& value, CSSValueID functionType, InterpolationRange)
« no previous file with comments | « Source/core/animation/FilterStyleInterpolation.h ('k') | Source/core/animation/FilterStyleInterpolationTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698