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

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

Issue 2710883002: Expand FrameSeleciton::isNone() to increase chances of hoisting update layout (Closed)
Patch Set: 2017-02-23T16:27:43 rebase to resolve conflict with DOMSelection in r452402 Created 3 years, 10 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 0d9a2295fe6db2c9a95e7ff31ba0b15200d02843..b8f758b78d64d1e58e66818c851c655141db2b9c 100644
--- a/third_party/WebKit/Source/core/input/EventHandler.cpp
+++ b/third_party/WebKit/Source/core/input/EventHandler.cpp
@@ -555,7 +555,10 @@ OptionalCursor EventHandler::selectAutoCursor(const HitTestResult& result,
if (m_mouseEventManager->mousePressed() &&
selectionController().mouseDownMayStartSelect() &&
!m_mouseEventManager->mouseDownMayStartDrag() &&
- !m_frame->selection().isNone() && !m_capturingMouseEventsNode) {
+ !m_frame->selection()
+ .computeVisibleSelectionInDOMTreeDeprecated()
+ .isNone() &&
+ !m_capturingMouseEventsNode) {
return iBeam;
}

Powered by Google App Engine
This is Rietveld 408576698