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

Unified Diff: third_party/WebKit/Source/core/css/CSSGradientValue.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/css/CSSGradientValue.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSGradientValue.cpp b/third_party/WebKit/Source/core/css/CSSGradientValue.cpp
index 51f8483565fbcfb84a17bd087babae7697affe83..d975a986cdd2feebf8af299829c0883ac68e6477 100644
--- a/third_party/WebKit/Source/core/css/CSSGradientValue.cpp
+++ b/third_party/WebKit/Source/core/css/CSSGradientValue.cpp
@@ -153,7 +153,7 @@ PassRefPtr<Image> CSSGradientValue::GetImage(
if (is_cacheable_)
PutImage(size, new_image);
- return new_image.Release();
+ return new_image;
}
// Should only ever be called for deprecated gradients.
@@ -1042,7 +1042,7 @@ PassRefPtr<Gradient> CSSLinearGradientValue::CreateGradient(
// Now add the stops.
gradient->AddColorStops(desc.stops);
- return gradient.Release();
+ return gradient;
}
bool CSSLinearGradientValue::Equals(const CSSLinearGradientValue& other) const {
@@ -1416,7 +1416,7 @@ PassRefPtr<Gradient> CSSRadialGradientValue::CreateGradient(
// Now add the stops.
gradient->AddColorStops(desc.stops);
- return gradient.Release();
+ return gradient;
}
bool CSSRadialGradientValue::Equals(const CSSRadialGradientValue& other) const {
@@ -1530,7 +1530,7 @@ PassRefPtr<Gradient> CSSConicGradientValue::CreateGradient(
position, angle, Gradient::ColorInterpolation::kPremultiplied);
gradient->AddColorStops(desc.stops);
- return gradient.Release();
+ return gradient;
}
bool CSSConicGradientValue::Equals(const CSSConicGradientValue& other) const {
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSFontFace.cpp ('k') | third_party/WebKit/Source/core/css/LocalFontFaceSource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698