Commit 08b287f8 authored by xiaochengh's avatar xiaochengh Committed by Commit bot

Prune ComputeVisibleSelectionInDOMTreeDeprecated from Editor::ChangeSelectionAfterCommand

This patch prunes a call site of the deprecated function to improve
code health.

The change is safe because the call site only needs the selection type,
not the selection itself. After this patch, it also aligns with the
code in Editor::RespondToChangedSelection.

BUG=698633
TEST=n/a; no behavioral change

Review-Url: https://codereview.chromium.org/2852913002
Cr-Commit-Position: refs/heads/master@{#468304}
parent 1853a2e6
......@@ -1486,8 +1486,8 @@ void Editor::ChangeSelectionAfterCommand(
Client().RespondToChangedSelection(
frame_, GetFrame()
.Selection()
.ComputeVisibleSelectionInDOMTreeDeprecated()
.GetSelectionType());
.GetSelectionInDOMTree()
.SelectionTypeWithLegacyGranularity());
}
}
......
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