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

Unified Diff: third_party/WebKit/Source/core/editing/commands/IndentOutdentCommand.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/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 fa8cb997cebaac7082532e5ff67add81b2b51369..6738c9fd015dd9847b19c36b7ce96abf2bbb7987 100644
--- a/third_party/WebKit/Source/core/editing/commands/IndentOutdentCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/IndentOutdentCommand.cpp
@@ -250,7 +250,7 @@ void IndentOutdentCommand::outdentRegion(const VisiblePosition& startOfSelection
while (endOfCurrentParagraph.deepEquivalent() != endAfterSelection.deepEquivalent()) {
VisiblePosition endOfNextParagraph = endOfParagraphDeprecated(nextPositionOfDeprecated(endOfCurrentParagraph));
if (endOfCurrentParagraph.deepEquivalent() == endOfLastParagraph.deepEquivalent())
- setEndingSelection(VisibleSelection(originalSelectionEnd, TextAffinity::Downstream));
+ setEndingSelection(createVisibleSelectionDeprecated(originalSelectionEnd, TextAffinity::Downstream));
else
setEndingSelection(endOfCurrentParagraph);

Powered by Google App Engine
This is Rietveld 408576698