Index: Source/core/page/DragController.cpp |
diff --git a/Source/core/page/DragController.cpp b/Source/core/page/DragController.cpp |
index cdf18316ae531ea2763829cbc36f0b5db7b6a042..0ec042d8a3677423e302f7219a8ed9cd987f109d 100644 |
--- a/Source/core/page/DragController.cpp |
+++ b/Source/core/page/DragController.cpp |
@@ -374,7 +374,7 @@ bool DragController::tryDocumentDrag(DragData* dragData, DragDestinationAction a |
} |
if (!m_fileInputElementUnderMouse) |
- m_page->dragCaretController().setCaretPosition(m_documentUnderMouse->frame()->visiblePositionForPoint(point)); |
+ m_page->dragCaretController().setCaretPosition(m_documentUnderMouse->frame()->positionForPoint(point)); |
LocalFrame* innerFrame = element->document().frame(); |
dragSession.operation = dragIsMove(innerFrame->selection(), dragData) ? DragOperationMove : DragOperationCopy; |
@@ -428,7 +428,7 @@ static bool setSelectionToDragCaret(LocalFrame* frame, VisibleSelection& dragCar |
{ |
frame->selection().setSelection(dragCaret); |
if (frame->selection().isNone()) { |
- dragCaret = VisibleSelection(frame->visiblePositionForPoint(point)); |
+ dragCaret = VisibleSelection(frame->positionForPoint(point)); |
frame->selection().setSelection(dragCaret); |
range = dragCaret.toNormalizedRange(); |
} |