Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(712)

Issue 2979513002: Use Layoutselection::SelectionBounds() in RevealSelection() (Closed)

Created:
3 years, 5 months ago by yoichio
Modified:
3 years, 5 months ago
Reviewers:
yosin_UTC9
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Use 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -22 lines) Patch
M third_party/WebKit/Source/core/editing/FrameSelection.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/FrameSelection.cpp View 3 chunks +19 lines, -22 lines 0 comments Download

Messages

Total messages: 15 (11 generated)
yoichio
3 years, 5 months ago (2017-07-10 07:54:12 UTC) #7
yosin_UTC9
lgtm
3 years, 5 months ago (2017-07-10 08:43:34 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2979513002/40001
3 years, 5 months ago (2017-07-10 08:43:37 UTC) #12
commit-bot: I haz the power
3 years, 5 months ago (2017-07-10 09:21:56 UTC) #15
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/a6a78b205297ad9733dbe8d828dc...

Powered by Google App Engine
This is Rietveld 408576698