DescriptionUse Layoutselection::SelectionBounds() in RevealSelection()
Before this patch, we use VisibleUnit::ComputeTextRect() to compute
a rect to scroll.
However, ComputeTextRect() calls InlineTextBox::LocalSelectionRect() which
depends on InlineTextBox current SelectionState.
To avoid that, update SeletionState and get a rect directly from
LayoutSelection::SelectionBounds().
BUG=739062, 740401
TEST=LayoutTests/editing/input/scroll-with-tab-to-input-regression.html
Review-Url: https://codereview.chromium.org/2979513002
Cr-Commit-Position: refs/heads/master@{#485214}
Committed: https://chromium.googlesource.com/chromium/src/+/a6a78b205297ad9733dbe8d828dcc43cfad7667e
Patch Set 1 #Patch Set 2 : update #Patch Set 3 : update #
Messages
Total messages: 15 (11 generated)
|