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

Unified Diff: Source/core/editing/commands/MoveSelectionCommand.cpp

Issue 1317053004: Make VisiblePosition constructor private (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-09-02T12:44:47 Rebase Created 5 years, 3 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: Source/core/editing/commands/MoveSelectionCommand.cpp
diff --git a/Source/core/editing/commands/MoveSelectionCommand.cpp b/Source/core/editing/commands/MoveSelectionCommand.cpp
index d4b98e4ba2da8a5ce64436037d1b017b9744f326..f71d23429e804ba09ab59e5b2ab5f2bced311cb1 100644
--- a/Source/core/editing/commands/MoveSelectionCommand.cpp
+++ b/Source/core/editing/commands/MoveSelectionCommand.cpp
@@ -65,7 +65,7 @@ void MoveSelectionCommand::doApply()
if (!pos.inDocument())
pos = endingSelection().start();
- cleanupAfterDeletion(VisiblePosition(pos));
+ cleanupAfterDeletion(createVisiblePosition(pos));
setEndingSelection(VisibleSelection(pos, endingSelection().affinity(), endingSelection().isDirectional()));
if (!pos.inDocument()) {
« no previous file with comments | « Source/core/editing/commands/InsertTextCommand.cpp ('k') | Source/core/editing/commands/ReplaceSelectionCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698