| Index: third_party/WebKit/Source/core/editing/commands/InsertLineBreakCommand.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/commands/InsertLineBreakCommand.cpp b/third_party/WebKit/Source/core/editing/commands/InsertLineBreakCommand.cpp
|
| index 13782f40fcfa1eb2c2ba1cf223e353a4b55691a7..2f347a9ef57456ed078d5b46e21f91ae98bad185 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/InsertLineBreakCommand.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/commands/InsertLineBreakCommand.cpp
|
| @@ -229,8 +229,9 @@ void InsertLineBreakCommand::doApply(EditingState* editingState) {
|
| // So, this next call sets the endingSelection() to a caret just after the
|
| // line break that we inserted, or just before it if it's at the end of a
|
| // block.
|
| - document().updateStyleAndLayoutIgnorePendingStylesheets();
|
| - setEndingSelection(endingSelection().visibleEnd());
|
| + setEndingSelection(SelectionInDOMTree::Builder()
|
| + .collapse(endingSelection().end())
|
| + .build());
|
| }
|
|
|
| rebalanceWhitespace();
|
|
|