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

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

Issue 2967893002: Display arrow cursor instead of i-beam when selection is not present (Closed)
Patch Set: updated patch with expected file Created 3 years, 5 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 89cbf41dababfdd287484efbe736920b2dd0150f..11f4883ba3f12857ae3b80fbf3596a6cdfdc6498 100644
--- a/third_party/WebKit/Source/core/input/EventHandler.cpp
+++ b/third_party/WebKit/Source/core/input/EventHandler.cpp
@@ -552,9 +552,9 @@ OptionalCursor EventHandler::SelectAutoCursor(const HitTestResult& result,
if (mouse_event_manager_->MousePressed() &&
GetSelectionController().MouseDownMayStartSelect() &&
!mouse_event_manager_->MouseDownMayStartDrag() &&
- !frame_->Selection()
yosin_UTC9 2017/07/05 01:27:45 The issue is caused by hidden selection regarding
- .ComputeVisibleSelectionInDOMTreeDeprecated()
- .IsNone() &&
+ frame_->Selection()
+ .ComputeVisibleSelectionInDOMTreeDeprecated()
+ .IsRange() &&
!capturing_mouse_events_node_) {
return i_beam;
}

Powered by Google App Engine
This is Rietveld 408576698