| 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();
|
| }
|
|
|