| 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 5cadbda9a7df38083c8a8cdac41f9362768599e2..c5c10be0b1a62c9f38c9696dba51d772d9379d0e 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp
|
| @@ -1242,7 +1242,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;
|
|
|