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

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-01T18:48:19 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
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()) {

Powered by Google App Engine
This is Rietveld 408576698