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

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: Build fix Created 5 years, 8 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 e26d66965e9d3d720c88f01a8efb5b7081f9095f..c37159b8e7b04f20bf65b606b7d1a1a265e55a1d 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)

Powered by Google App Engine
This is Rietveld 408576698