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

Unified Diff: third_party/WebKit/Source/core/css/BasicShapeFunctions.cpp

Issue 2622043003: Replaced RefPtr::release with std::move in Source/core. (Closed)
Patch Set: Created 3 years, 11 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/css/BasicShapeFunctions.cpp
diff --git a/third_party/WebKit/Source/core/css/BasicShapeFunctions.cpp b/third_party/WebKit/Source/core/css/BasicShapeFunctions.cpp
index 6411ee0b725c4b6b7c62a50dd10d17614918ba68..ae17742f73b0acadc9e863c917dccd869803be8c 100644
--- a/third_party/WebKit/Source/core/css/BasicShapeFunctions.cpp
+++ b/third_party/WebKit/Source/core/css/BasicShapeFunctions.cpp
@@ -244,7 +244,7 @@ PassRefPtr<BasicShape> basicShapeForValue(const StyleResolverState& state,
circle->setCenterY(convertToCenterCoordinate(state, circleValue.centerY()));
circle->setRadius(cssValueToBasicShapeRadius(state, circleValue.radius()));
- basicShape = circle.release();
+ basicShape = std::move(circle);
} else if (basicShapeValue.isBasicShapeEllipseValue()) {
const CSSBasicShapeEllipseValue& ellipseValue =
toCSSBasicShapeEllipseValue(basicShapeValue);
@@ -259,7 +259,7 @@ PassRefPtr<BasicShape> basicShapeForValue(const StyleResolverState& state,
ellipse->setRadiusY(
cssValueToBasicShapeRadius(state, ellipseValue.radiusY()));
- basicShape = ellipse.release();
+ basicShape = std::move(ellipse);
} else if (basicShapeValue.isBasicShapePolygonValue()) {
const CSSBasicShapePolygonValue& polygonValue =
toCSSBasicShapePolygonValue(basicShapeValue);
@@ -271,7 +271,7 @@ PassRefPtr<BasicShape> basicShapeForValue(const StyleResolverState& state,
polygon->appendPoint(convertToLength(state, values.at(i).get()),
convertToLength(state, values.at(i + 1).get()));
- basicShape = polygon.release();
+ basicShape = std::move(polygon);
} else if (basicShapeValue.isBasicShapeInsetValue()) {
const CSSBasicShapeInsetValue& rectValue =
toCSSBasicShapeInsetValue(basicShapeValue);
@@ -291,7 +291,7 @@ PassRefPtr<BasicShape> basicShapeForValue(const StyleResolverState& state,
rect->setBottomLeftRadius(
convertToLengthSize(state, rectValue.bottomLeftRadius()));
- basicShape = rect.release();
+ basicShape = std::move(rect);
} else {
ASSERT_NOT_REACHED();
}

Powered by Google App Engine
This is Rietveld 408576698