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

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

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.cpp
diff --git a/third_party/WebKit/Source/modules/canvas2d/CanvasPattern.cpp b/third_party/WebKit/Source/modules/canvas2d/CanvasPattern.cpp
index 6b3ddf073e2f2baec0cb2c30194b73c826a3019d..77b065a44185007935f14b8e2ca0e4ddca894a3a 100644
--- a/third_party/WebKit/Source/modules/canvas2d/CanvasPattern.cpp
+++ b/third_party/WebKit/Source/modules/canvas2d/CanvasPattern.cpp
@@ -51,7 +51,7 @@ Pattern::RepeatMode CanvasPattern::parseRepetitionType(const String& type,
}
CanvasPattern::CanvasPattern(PassRefPtr<Image> image, Pattern::RepeatMode repeat, bool originClean)
- : m_pattern(Pattern::createImagePattern(image, repeat))
+ : m_pattern(Pattern::createImagePattern(std::move(image), repeat))
, m_originClean(originClean)
{
}

Powered by Google App Engine
This is Rietveld 408576698