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

Unified Diff: third_party/WebKit/Source/core/editing/SelectionController.cpp

Issue 2771463002: Revert "Send click event after pointer capturing retarget" (Closed)
Patch Set: Created 3 years, 9 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/editing/SelectionController.cpp
diff --git a/third_party/WebKit/Source/core/editing/SelectionController.cpp b/third_party/WebKit/Source/core/editing/SelectionController.cpp
index c577d52a40dc46166c99dbad87ba8809869b42b6..de2efb560f21ab7667a3590a88eaaad7a1950119 100644
--- a/third_party/WebKit/Source/core/editing/SelectionController.cpp
+++ b/third_party/WebKit/Source/core/editing/SelectionController.cpp
@@ -790,9 +790,9 @@ void SelectionController::handleMousePressEvent(
const MouseEventWithHitTestResults& event) {
// If we got the event back, that must mean it wasn't prevented,
// so it's allowed to start a drag or selection if it wasn't in a scrollbar.
- m_mouseDownMayStartSelect = (canMouseDownStartSelect(event.innerNode()) ||
- isSelectionOverLink(event)) &&
- !event.scrollbar();
+ m_mouseDownMayStartSelect =
+ (canMouseDownStartSelect(event.innerNode()) || isLinkSelection(event)) &&
+ !event.scrollbar();
m_mouseDownWasSingleClickInSelection = false;
if (!selection().isAvailable()) {
// "gesture-tap-frame-removed.html" reaches here.
@@ -1085,7 +1085,7 @@ FrameSelection& SelectionController::selection() const {
return m_frame->selection();
}
-bool isSelectionOverLink(const MouseEventWithHitTestResults& event) {
+bool isLinkSelection(const MouseEventWithHitTestResults& event) {
return (event.event().modifiers() & WebInputEvent::Modifiers::AltKey) != 0 &&
event.isOverLink();
}
« no previous file with comments | « third_party/WebKit/Source/core/editing/SelectionController.h ('k') | third_party/WebKit/Source/core/input/EventHandler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698