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

Unified Diff: third_party/WebKit/Source/core/style/BasicShapes.cpp

Issue 2957513002: Removed calls to RefPtr::Release in return statements with auto move. (Closed)
Patch Set: rebased Created 3 years, 6 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/style/BasicShapes.cpp
diff --git a/third_party/WebKit/Source/core/style/BasicShapes.cpp b/third_party/WebKit/Source/core/style/BasicShapes.cpp
index cc594c379bb42deb43c77a3e6043117abe29d47c..c4124aeaacfd94a4dcf58b79a45e7c26d9d7fba4 100644
--- a/third_party/WebKit/Source/core/style/BasicShapes.cpp
+++ b/third_party/WebKit/Source/core/style/BasicShapes.cpp
@@ -115,7 +115,7 @@ PassRefPtr<BasicShape> BasicShapeCircle::Blend(const BasicShape* other,
result->SetCenterX(center_x_.Blend(o->CenterX(), progress));
result->SetCenterY(center_y_.Blend(o->CenterY(), progress));
result->SetRadius(radius_.Blend(o->Radius(), progress));
- return result.Release();
+ return result;
}
bool BasicShapeEllipse::operator==(const BasicShape& o) const {
@@ -175,7 +175,7 @@ PassRefPtr<BasicShape> BasicShapeEllipse::Blend(const BasicShape* other,
result->SetCenterY(center_y_.Blend(o->CenterY(), progress));
result->SetRadiusX(radius_x_.Blend(o->RadiusX(), progress));
result->SetRadiusY(radius_y_.Blend(o->RadiusY(), progress));
- return result.Release();
+ return result;
}
void BasicShapePolygon::GetPath(Path& path, const FloatRect& bounding_box) {
@@ -213,7 +213,7 @@ PassRefPtr<BasicShape> BasicShapePolygon::Blend(const BasicShape* other,
size_t length = values_.size();
RefPtr<BasicShapePolygon> result = BasicShapePolygon::Create();
if (!length)
- return result.Release();
+ return result;
result->SetWindRule(o->GetWindRule());
@@ -224,7 +224,7 @@ PassRefPtr<BasicShape> BasicShapePolygon::Blend(const BasicShape* other,
kValueRangeAll));
}
- return result.Release();
+ return result;
}
bool BasicShapePolygon::operator==(const BasicShape& o) const {
@@ -294,7 +294,7 @@ PassRefPtr<BasicShape> BasicShapeInset::Blend(const BasicShape* other,
result->SetBottomLeftRadius(BlendLengthSize(
bottom_left_radius_, other_inset.BottomLeftRadius(), progress));
- return result.Release();
+ return result;
}
bool BasicShapeInset::operator==(const BasicShape& o) const {

Powered by Google App Engine
This is Rietveld 408576698