| Index: third_party/WebKit/Source/core/editing/commands/CreateLinkCommand.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/commands/CreateLinkCommand.cpp b/third_party/WebKit/Source/core/editing/commands/CreateLinkCommand.cpp
|
| index 6fcdd36c5dbb01a9cc65d41481bdbc18e3f90293..566650e1d35c4e1e433d66649f1216bf325e8989 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/CreateLinkCommand.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/commands/CreateLinkCommand.cpp
|
| @@ -54,13 +54,12 @@ void CreateLinkCommand::doApply(EditingState* editingState) {
|
| appendNode(textNode, anchorElement, editingState);
|
| if (editingState->isAborted())
|
| return;
|
| - document().updateStyleAndLayoutIgnorePendingStylesheets();
|
| - setEndingSelection(createVisibleSelection(
|
| + setEndingSelection(
|
| SelectionInDOMTree::Builder()
|
| .collapse(Position::inParentBeforeNode(*anchorElement))
|
| .extend(Position::inParentAfterNode(*anchorElement))
|
| .setIsDirectional(endingSelection().isDirectional())
|
| - .build()));
|
| + .build());
|
| }
|
| }
|
|
|
|
|