| 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..336467f0fbcc8381a80e7ea74f5eade8a4666314 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp
|
| @@ -1789,9 +1789,11 @@ static bool ExecuteSelectToMark(LocalFrame& frame,
|
| EphemeralRange selection = frame.GetEditor().SelectedRange();
|
| if (mark.IsNull() || selection.IsNull())
|
| return false;
|
| - frame.Selection().SetSelectedRange(
|
| - UnionEphemeralRanges(mark, selection), TextAffinity::kDownstream,
|
| - SelectionDirectionalMode::kNonDirectional, FrameSelection::kCloseTyping);
|
| + frame.Selection().SetSelection(
|
| + SelectionInDOMTree::Builder()
|
| + .SetBaseAndExtent(UnionEphemeralRanges(mark, selection))
|
| + .Build(),
|
| + FrameSelection::kCloseTyping);
|
| return true;
|
| }
|
|
|
|
|