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

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

Issue 2909613002: Replaced usage of RefPtr::Release with std::move wraps. (Closed)
Patch Set: Created 3 years, 7 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/BaseRenderingContext2D.cpp
diff --git a/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp b/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp
index 27e2c82e55af1df7b707e9c8b28c653da4e32d76..afd135bcf62f29f05e3c63c806e2eacbe2500bec 100644
--- a/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp
+++ b/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp
@@ -1475,7 +1475,7 @@ CanvasPattern* BaseRenderingContext2D::createPattern(
bool origin_clean =
!WouldTaintOrigin(image_source, ExecutionContext::From(script_state));
- return CanvasPattern::Create(image_for_rendering.Release(), repeat_mode,
+ return CanvasPattern::Create(std::move(image_for_rendering), repeat_mode,
origin_clean);
}

Powered by Google App Engine
This is Rietveld 408576698