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

Unified Diff: third_party/WebKit/Source/platform/graphics/ImagePattern.cpp

Issue 2306293002: Replaced PassRefPtr copies with moves in Source/platform. (Closed)
Patch Set: Created 4 years, 3 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/platform/graphics/ImagePattern.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/ImagePattern.cpp b/third_party/WebKit/Source/platform/graphics/ImagePattern.cpp
index a76cd7f5a1fcbc6792348d88016ff7e14923c7a4..3f47f4f973ae4ac765d47eb656af818879e41122 100644
--- a/third_party/WebKit/Source/platform/graphics/ImagePattern.cpp
+++ b/third_party/WebKit/Source/platform/graphics/ImagePattern.cpp
@@ -15,7 +15,7 @@ namespace blink {
PassRefPtr<ImagePattern> ImagePattern::create(PassRefPtr<Image> image, RepeatMode repeatMode)
{
- return adoptRef(new ImagePattern(image, repeatMode));
+ return adoptRef(new ImagePattern(std::move(image), repeatMode));
}
ImagePattern::ImagePattern(PassRefPtr<Image> image, RepeatMode repeatMode)

Powered by Google App Engine
This is Rietveld 408576698