| 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 b3b12ac43eb61b64e270f190d3d1071fc1e5d516..627cdd7b95f06449afa45a6accc682c54a53dcef 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp
|
| @@ -1241,7 +1241,8 @@ void CompositeEditCommand::pushAnchorElementDown(Element* anchorNode,
|
|
|
| DCHECK(anchorNode->isLink()) << anchorNode;
|
|
|
| - setEndingSelection(VisibleSelection::selectionFromContentsOfNode(anchorNode));
|
| + setEndingSelection(createVisibleSelection(
|
| + SelectionInDOMTree::Builder().selectAllChildren(*anchorNode).build()));
|
| applyStyledElement(anchorNode, editingState);
|
| if (editingState->isAborted())
|
| return;
|
|
|