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/CSSTextIndentInterpolationType.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/CSSTextIndentInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSTextIndentInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSTextIndentInterpolationType.cpp
index 480159713f2b98830dbb13a3d45e9db9a089e5b5..5aac0563e37213670d810fe530c4894c976952fe 100644
--- a/third_party/WebKit/Source/core/animation/CSSTextIndentInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSTextIndentInterpolationType.cpp
@@ -105,7 +105,7 @@ InterpolationValue createValue(const Length& length, const IndentMode& mode, dou
{
InterpolationValue convertedLength = CSSLengthInterpolationType::maybeConvertLength(length, zoom);
ASSERT(convertedLength);
- return InterpolationValue(convertedLength.interpolableValue.release(), CSSTextIndentNonInterpolableValue::create(convertedLength.nonInterpolableValue.release(), mode));
+ return InterpolationValue(std::move(convertedLength.interpolableValue), CSSTextIndentNonInterpolableValue::create(convertedLength.nonInterpolableValue.release(), mode));
}
} // namespace
@@ -149,7 +149,7 @@ InterpolationValue CSSTextIndentInterpolationType::maybeConvertValue(const CSSVa
ASSERT(length);
return InterpolationValue(
- length.interpolableValue.release(),
+ std::move(length.interpolableValue),
CSSTextIndentNonInterpolableValue::create(length.nonInterpolableValue.release(), IndentMode(line, type)));
}
@@ -168,8 +168,8 @@ PairwiseInterpolationValue CSSTextIndentInterpolationType::maybeMergeSingles(Int
return nullptr;
PairwiseInterpolationValue result = CSSLengthInterpolationType::staticMergeSingleConversions(
- InterpolationValue(start.interpolableValue.release(), startNonInterpolableValue.lengthNonInterpolableValue().release()),
- InterpolationValue(end.interpolableValue.release(), endNonInterpolableValue.lengthNonInterpolableValue().release()));
+ InterpolationValue(std::move(start.interpolableValue), startNonInterpolableValue.lengthNonInterpolableValue().release()),
+ InterpolationValue(std::move(end.interpolableValue), endNonInterpolableValue.lengthNonInterpolableValue().release()));
result.nonInterpolableValue = CSSTextIndentNonInterpolableValue::create(result.nonInterpolableValue.release(), startNonInterpolableValue.mode());
return result;
}

Powered by Google App Engine
This is Rietveld 408576698