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

Unified Diff: third_party/WebKit/Source/core/animation/CSSImageSliceInterpolationType.cpp

Issue 1977763002: Remove OwnPtr::release() calls in core/ (part 1). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove static_pointer_cast<>s. Created 4 years, 7 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: third_party/WebKit/Source/core/animation/CSSImageSliceInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSImageSliceInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSImageSliceInterpolationType.cpp
index b1c8a7727bd947da03d1731adf01bf5952554d38..28e27340cc90f9a6d4c4c646dd0279274ddfdf19 100644
--- a/third_party/WebKit/Source/core/animation/CSSImageSliceInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSImageSliceInterpolationType.cpp
@@ -141,7 +141,7 @@ InterpolationValue convertImageSlice(const ImageSlice& slice, double zoom)
list->set(i, InterpolableNumber::create(side.isFixed() ? side.pixels() / zoom : side.percent()));
}
- return InterpolationValue(list.release(), CSSImageSliceNonInterpolableValue::create(SliceTypes(slice)));
+ return InterpolationValue(std::move(list), CSSImageSliceNonInterpolableValue::create(SliceTypes(slice)));
}
} // namespace
@@ -189,7 +189,7 @@ InterpolationValue CSSImageSliceInterpolationType::maybeConvertValue(const CSSVa
list->set(i, InterpolableNumber::create(sides[i]->getDoubleValue()));
}
- return InterpolationValue(list.release(), CSSImageSliceNonInterpolableValue::create(SliceTypes(slice)));
+ return InterpolationValue(std::move(list), CSSImageSliceNonInterpolableValue::create(SliceTypes(slice)));
}
InterpolationValue CSSImageSliceInterpolationType::maybeConvertUnderlyingValue(const InterpolationEnvironment& environment) const
@@ -206,7 +206,7 @@ PairwiseInterpolationValue CSSImageSliceInterpolationType::maybeMergeSingles(Int
if (startSliceTypes != endSliceTypes)
return nullptr;
- return PairwiseInterpolationValue(start.interpolableValue.release(), end.interpolableValue.release(), start.nonInterpolableValue.release());
+ return PairwiseInterpolationValue(std::move(start.interpolableValue), std::move(end.interpolableValue), start.nonInterpolableValue.release());
}
void CSSImageSliceInterpolationType::composite(UnderlyingValueOwner& underlyingValueOwner, double underlyingFraction, const InterpolationValue& value, double interpolationFraction) const

Powered by Google App Engine
This is Rietveld 408576698