Index: third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp |
diff --git a/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp b/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp |
index 11f43c80d442f5c4538818d4ca912e626f0ac5f0..8c2d21feb0b7689b08d70bc88f8d6ef79560abcd 100644 |
--- a/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp |
+++ b/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp |
@@ -1814,8 +1814,10 @@ bool CompositeEditCommand::breakOutOfEmptyListItem(EditingState* editingState) { |
document().updateStyleAndLayoutIgnorePendingStylesheets(); |
setEndingSelection(createVisibleSelection( |
- Position::firstPositionInNode(newBlock), TextAffinity::Downstream, |
- endingSelection().isDirectional())); |
+ SelectionInDOMTree::Builder() |
+ .collapse(Position::firstPositionInNode(newBlock)) |
+ .setIsDirectional(endingSelection().isDirectional()) |
+ .build())); |
style->prepareToApplyAt(endingSelection().start()); |
if (!style->isEmpty()) { |