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

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

Issue 2450213002: Utilize EditCommand::setEndingSelection() taking SelectionInDOMTree (Closed)
Patch Set: 2016-10-28T14:44:14 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 f97494f0745f9ed7e9c539a3a0932c5eadf4db75..603496c04b305e5641d40a380365403e13461703 100644
--- a/third_party/WebKit/Source/core/editing/commands/IndentOutdentCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/IndentOutdentCommand.cpp
@@ -348,7 +348,7 @@ void IndentOutdentCommand::outdentRegion(
SelectionInDOMTree::Builder builder;
if (originalSelectionEnd.isNotNull())
builder.collapse(originalSelectionEnd);
- setEndingSelection(createVisibleSelection(builder.build()));
+ setEndingSelection(builder.build());
} else {
setEndingSelection(SelectionInDOMTree::Builder()
.collapse(endOfCurrentParagraph.deepEquivalent())

Powered by Google App Engine
This is Rietveld 408576698