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

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceRadialGradient.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/layout/svg/LayoutSVGResourceRadialGradient.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceRadialGradient.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceRadialGradient.cpp
index 77ee07b478cd90be2e4dbc08ffb3cf612d3fd3da..5d44547e6fab4e9676a1eb1bd6cc5fbb60d672c8 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceRadialGradient.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceRadialGradient.cpp
@@ -73,7 +73,7 @@ PassRefPtr<Gradient> LayoutSVGResourceRadialGradient::BuildGradient() const {
PlatformSpreadMethodFromSVGType(attributes.SpreadMethod()),
Gradient::ColorInterpolation::kUnpremultiplied);
gradient->AddColorStops(attributes.Stops());
- return gradient.Release();
+ return gradient;
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698