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

Unified Diff: third_party/WebKit/Source/core/page/DragController.cpp

Issue 2708703003: Expand FrameSeleciton::isRange() to increase chances of hoisting update layout (Closed)
Patch Set: 2017-02-21T23:48:22 rebase 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/page/DragController.cpp
diff --git a/third_party/WebKit/Source/core/page/DragController.cpp b/third_party/WebKit/Source/core/page/DragController.cpp
index 4622e1d96acb0398dfaba2deea2d3311fe8b62c4..9483dab469c5f2a40082349255947b8dff86d795 100644
--- a/third_party/WebKit/Source/core/page/DragController.cpp
+++ b/third_party/WebKit/Source/core/page/DragController.cpp
@@ -199,7 +199,8 @@ static DocumentFragment* documentFragmentFromDragData(
bool DragController::dragIsMove(FrameSelection& selection, DragData* dragData) {
return m_documentUnderMouse == m_dragInitiator &&
- selection.isContentEditable() && selection.isRange() &&
+ selection.isContentEditable() &&
+ selection.computeVisibleSelectionInDOMTreeDeprecated().isRange() &&
!isCopyKeyDown(dragData);
}
« no previous file with comments | « third_party/WebKit/Source/core/input/MouseEventManager.cpp ('k') | third_party/WebKit/Source/web/WebLocalFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698