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

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

Issue 2374183004: Make non-null VisibleSelections creatable only by createVisibleSelection[Deprecated] (Closed)
Patch Set: Fix mac compile error Created 4 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: third_party/WebKit/Source/core/editing/commands/MoveSelectionCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/MoveSelectionCommand.cpp b/third_party/WebKit/Source/core/editing/commands/MoveSelectionCommand.cpp
index bad48fa0f146c3161668fa0d18d52d0e776f69c5..145b00b77c77c141f72c895bbd1661b686b8e65f 100644
--- a/third_party/WebKit/Source/core/editing/commands/MoveSelectionCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/MoveSelectionCommand.cpp
@@ -70,7 +70,7 @@ void MoveSelectionCommand::doApply(EditingState* editingState)
if (editingState->isAborted())
return;
- setEndingSelection(VisibleSelection(pos, endingSelection().affinity(), endingSelection().isDirectional()));
+ setEndingSelection(createVisibleSelectionDeprecated(pos, endingSelection().affinity(), endingSelection().isDirectional()));
if (!pos.isConnected()) {
// Document was modified out from under us.
return;

Powered by Google App Engine
This is Rietveld 408576698