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

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

Issue 1299873002: ALL-IN-ONE Introduce enum class TextAffinity (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-08-19T18:08:52 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/IndentOutdentCommand.cpp
diff --git a/Source/core/editing/commands/IndentOutdentCommand.cpp b/Source/core/editing/commands/IndentOutdentCommand.cpp
index 779bfdf92eab9d6a0be1a11df7d9eab0f26f014b..4f51c32df5dc7a15a5a190650b87a2b6fefe6fb9 100644
--- a/Source/core/editing/commands/IndentOutdentCommand.cpp
+++ b/Source/core/editing/commands/IndentOutdentCommand.cpp
@@ -219,7 +219,7 @@ void IndentOutdentCommand::outdentRegion(const VisiblePosition& startOfSelection
while (endOfCurrentParagraph.deepEquivalent() != endAfterSelection.deepEquivalent()) {
VisiblePosition endOfNextParagraph = endOfParagraph(endOfCurrentParagraph.next());
if (endOfCurrentParagraph.deepEquivalent() == endOfLastParagraph.deepEquivalent())
- setEndingSelection(VisibleSelection(originalSelectionEnd, DOWNSTREAM));
+ setEndingSelection(VisibleSelection(originalSelectionEnd, TextAffinity::Downstream));
else
setEndingSelection(endOfCurrentParagraph);
« no previous file with comments | « Source/core/editing/commands/EditorCommand.cpp ('k') | Source/core/editing/commands/InsertLineBreakCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698