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

Unified Diff: Source/core/editing/DragCaretController.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/editing/DragCaretController.h ('k') | Source/core/editing/VisibleSelection.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/DragCaretController.cpp
diff --git a/Source/core/editing/DragCaretController.cpp b/Source/core/editing/DragCaretController.cpp
index 4e79101ebd73577a0189cbf176a5d8b99a6dec72..7bc91b9346eb230fbb320908e6e316aff7476cf6 100644
--- a/Source/core/editing/DragCaretController.cpp
+++ b/Source/core/editing/DragCaretController.cpp
@@ -47,7 +47,7 @@ bool DragCaretController::isContentRichlyEditable() const
return isRichlyEditablePosition(m_position.deepEquivalent());
}
-void DragCaretController::setCaretPosition(const VisiblePosition& position)
+void DragCaretController::setCaretPosition(const PositionWithAffinity& position)
{
// for querying Layer::compositingState()
// This code is probably correct, since it doesn't occur in a stack that
@@ -56,7 +56,7 @@ void DragCaretController::setCaretPosition(const VisiblePosition& position)
if (Node* node = m_position.deepEquivalent().anchorNode())
invalidateCaretRect(node);
- m_position = position;
+ m_position = VisiblePosition(position);
Document* document = nullptr;
if (Node* node = m_position.deepEquivalent().anchorNode()) {
invalidateCaretRect(node);
« no previous file with comments | « Source/core/editing/DragCaretController.h ('k') | Source/core/editing/VisibleSelection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698