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

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

Issue 2451093002: Get rid of EditCommand::setEndingSelection() taking one VisiblePosition (Closed)
Patch Set: 2016-10-26T16:39:39 Created 4 years, 2 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/IndentOutdentCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/IndentOutdentCommand.cpp b/third_party/WebKit/Source/core/editing/commands/IndentOutdentCommand.cpp
index 553f61567915c277b40f8f4659956c7237c1d0c5..f97494f0745f9ed7e9c539a3a0932c5eadf4db75 100644
--- a/third_party/WebKit/Source/core/editing/commands/IndentOutdentCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/IndentOutdentCommand.cpp
@@ -350,7 +350,9 @@ void IndentOutdentCommand::outdentRegion(
builder.collapse(originalSelectionEnd);
setEndingSelection(createVisibleSelection(builder.build()));
} else {
- setEndingSelection(endOfCurrentParagraph);
+ setEndingSelection(SelectionInDOMTree::Builder()
+ .collapse(endOfCurrentParagraph.deepEquivalent())
+ .build());
}
outdentParagraph(editingState);

Powered by Google App Engine
This is Rietveld 408576698