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

Unified Diff: third_party/WebKit/Source/core/input/EventHandler.cpp

Issue 2871703003: Clear the state of scroll and selection onmouseup (Closed)
Patch Set: Remove redundant parameter 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/input/EventHandlerTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 88231b20507d3c80971eb3deb373786d143eaaad..d19d53d96d64babc35ed2e9dd2e118c3f8f96547 100644
--- a/third_party/WebKit/Source/core/input/EventHandler.cpp
+++ b/third_party/WebKit/Source/core/input/EventHandler.cpp
@@ -595,7 +595,6 @@ WebInputEventResult EventHandler::HandleMousePressEvent(
if (event_handler_will_reset_capturing_mouse_events_node_)
capturing_mouse_events_node_ = nullptr;
mouse_event_manager_->HandleMousePressEventUpdateStates(mouse_event);
- GetSelectionController().SetMouseDownMayStartSelect(false);
if (!frame_->View())
return WebInputEventResult::kNotHandled;
@@ -1005,9 +1004,8 @@ WebInputEventResult EventHandler::HandleMouseReleaseEvent(
if (event_result == WebInputEventResult::kNotHandled)
event_result = mouse_event_manager_->HandleMouseReleaseEvent(mev);
- mouse_event_manager_->ClearDragHeuristicState();
- mouse_event_manager_->InvalidateClick();
+ mouse_event_manager_->HandleMouseReleaseEventUpdateStates();
return EventHandlingUtil::MergeEventResult(click_event_result, event_result);
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/input/EventHandlerTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698