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

Unified Diff: third_party/WebKit/Source/modules/canvas2d/CanvasPattern.h

Issue 2308343002: Replaced PassRefPtr copites with moves in Source/modules. (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/modules/canvas2d/CanvasPattern.h
diff --git a/third_party/WebKit/Source/modules/canvas2d/CanvasPattern.h b/third_party/WebKit/Source/modules/canvas2d/CanvasPattern.h
index e77a391bba27fe3d7de6f43771842d9acd13dc83..d27aa314d100bbeea63a32c5edecb018c4652372 100644
--- a/third_party/WebKit/Source/modules/canvas2d/CanvasPattern.h
+++ b/third_party/WebKit/Source/modules/canvas2d/CanvasPattern.h
@@ -43,7 +43,7 @@ public:
static CanvasPattern* create(PassRefPtr<Image> image, Pattern::RepeatMode repeat, bool originClean)
{
- return new CanvasPattern(image, repeat, originClean);
+ return new CanvasPattern(std::move(image), repeat, originClean);
}
Pattern* getPattern() const { return m_pattern.get(); }
« no previous file with comments | « third_party/WebKit/Source/modules/cachestorage/Cache.cpp ('k') | third_party/WebKit/Source/modules/canvas2d/CanvasPattern.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698