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

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

Issue 2406163004: Simplify the usage of PositionWithAffinity (Closed)
Patch Set: 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 c2fd4ca90b4d36b105dfd6d46ce602051769c8dc..c153d2ddc0076e39e10950bc888a68011fef8fc9 100644
--- a/third_party/WebKit/Source/core/editing/commands/IndentOutdentCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/IndentOutdentCommand.cpp
@@ -359,8 +359,7 @@ void IndentOutdentCommand::outdentRegion(
break;
document().updateStyleAndLayoutIgnorePendingStylesheets();
- if (endOfNextParagraph.isNotNull() &&
- !endOfNextParagraph.position().isConnected()) {
+ if (endOfNextParagraph.isNotNull() && !endOfNextParagraph.isConnected()) {
endOfCurrentParagraph = createVisiblePosition(endingSelection().end());
endOfNextParagraph = endOfParagraph(nextPositionOf(endOfCurrentParagraph))
.toPositionWithAffinity();

Powered by Google App Engine
This is Rietveld 408576698