| Index: third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp b/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp
|
| index 847e5eefc2226e0f4a018ff85ae6fc4228edbf9d..88abe2a8ed794bee5acec6e2fce4882369ececb7 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp
|
| @@ -811,13 +811,12 @@ static bool ExecuteDeleteToMark(LocalFrame& frame,
|
| const EphemeralRange mark =
|
| frame.GetEditor().Mark().ToNormalizedEphemeralRange();
|
| if (mark.IsNotNull()) {
|
| - bool selected = frame.Selection().SetSelectedRange(
|
| - UnionEphemeralRanges(mark, frame.GetEditor().SelectedRange()),
|
| - TextAffinity::kDownstream, SelectionDirectionalMode::kNonDirectional,
|
| + frame.Selection().SetSelection(
|
| + SelectionInDOMTree::Builder()
|
| + .SetBaseAndExtent(
|
| + UnionEphemeralRanges(mark, frame.GetEditor().SelectedRange()))
|
| + .Build(),
|
| FrameSelection::kCloseTyping);
|
| - DCHECK(selected);
|
| - if (!selected)
|
| - return false;
|
| }
|
| frame.GetEditor().PerformDelete();
|
| frame.GetEditor().SetMark(
|
|
|