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

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

Issue 2073643002: Use enum instead of "bool preserveSelection and bool preserveStyle" of moveParagraph() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 aecd9215b58ae68dcdcaa980c0a4ba01b2196a55..578e2c78012d7d826c0aa8ac67cbd408c2964d2c 100644
--- a/third_party/WebKit/Source/core/editing/commands/IndentOutdentCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/IndentOutdentCommand.cpp
@@ -231,7 +231,7 @@ void IndentOutdentCommand::outdentParagraph(EditingState* editingState)
insertNodeBefore(placeholder, splitBlockquoteNode, editingState);
if (editingState->isAborted())
return;
- moveParagraph(startOfParagraphToMove, endOfParagraphToMove, createVisiblePosition(Position::beforeNode(placeholder)), editingState, true);
+ moveParagraph(startOfParagraphToMove, endOfParagraphToMove, createVisiblePosition(Position::beforeNode(placeholder)), editingState, PreserveSelection);
}
// FIXME: We should merge this function with ApplyBlockElementCommand::formatSelection

Powered by Google App Engine
This is Rietveld 408576698