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

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

Issue 1310323004: Introduce positionForPoint() in LocalFrame class as replacement of visiblePositionForPoint() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-08-25T15:15:43 Created 5 years, 4 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
« no previous file with comments | « Source/core/frame/LocalFrame.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « Source/core/frame/LocalFrame.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698