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

Unified Diff: third_party/WebKit/Source/core/input/EventHandler.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/core/input/EventHandler.cpp
diff --git a/third_party/WebKit/Source/core/input/EventHandler.cpp b/third_party/WebKit/Source/core/input/EventHandler.cpp
index 731624bfcf1c7a13ac042921bfa12bee9e1a3daf..594e65d19e2565d5b68a97e9534e24f52f2c2c1a 100644
--- a/third_party/WebKit/Source/core/input/EventHandler.cpp
+++ b/third_party/WebKit/Source/core/input/EventHandler.cpp
@@ -983,9 +983,9 @@ WebInputEventResult EventHandler::HandleMouseReleaseEvent(
.GetEventHandler()
.last_mouse_down_user_gesture_token_) {
gesture_indicator = WTF::WrapUnique(new UserGestureIndicator(
- frame_->LocalFrameRoot()
- .GetEventHandler()
- .last_mouse_down_user_gesture_token_.Release()));
+ std::move(frame_->LocalFrameRoot()
+ .GetEventHandler()
+ .last_mouse_down_user_gesture_token_)));
} else {
gesture_indicator = WTF::WrapUnique(new UserGestureIndicator(
DocumentUserGestureToken::Create(frame_->GetDocument())));

Powered by Google App Engine
This is Rietveld 408576698