Commit d8b32218 authored by tanvir.rizvi's avatar tanvir.rizvi Committed by Commit bot

Use SetSelection in InputMethodController::SetSelectionOffsets

InputMethodController::SetSelectionOffsets function is
changed to use SetSelection instead of SetSelectedRange.

BUG=721190

Review-Url: https://codereview.chromium.org/2893303002
Cr-Commit-Position: refs/heads/master@{#473793}
parent dc46f058
......@@ -803,9 +803,9 @@ bool InputMethodController::SetSelectionOffsets(
if (range.IsNull())
return false;
return GetFrame().Selection().SetSelectedRange(
range, VP_DEFAULT_AFFINITY, SelectionDirectionalMode::kNonDirectional,
options);
GetFrame().Selection().SetSelection(
SelectionInDOMTree::Builder().SetBaseAndExtent(range).Build(), options);
return true;
}
bool InputMethodController::SetEditableSelectionOffsets(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment