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

Issue 1118753004: Fix another case where scrollToMakeVisible was off. (Closed)

Created:
5 years, 7 months ago by dmazzoni
Modified:
5 years, 7 months ago
Reviewers:
je_julie(Not used)
CC:
blink-reviews, nektarios, dmazzoni, je_julie(Not used), aboxhall
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Fix another case where scrollToMakeVisible was off. AXObject::elementRect returns coordinates relative to the frame, so we don't need to do any offsetting when scrolling the main frame's scroll area. However, when we're scrolling something other than a frame, like a scrollable div, we need to put the element we're trying to make visible into the local coordinate frame of the scrollable div before we know how much to scroll it. BUG=459937, 457973 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=194818

Patch Set 1 #

Total comments: 2

Patch Set 2 : null-check scrollParent #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -1 line) Patch
M LayoutTests/accessibility/scroll-to-make-visible-div-overflow.html View 1 chunk +9 lines, -0 lines 0 comments Download
M LayoutTests/accessibility/scroll-to-make-visible-div-overflow-expected.txt View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/modules/accessibility/AXObject.cpp View 1 1 chunk +7 lines, -1 line 0 comments Download

Messages

Total messages: 8 (3 generated)
dmazzoni
5 years, 7 months ago (2015-04-30 22:43:26 UTC) #2
je_julie(Not used)
lgtm! https://codereview.chromium.org/1118753004/diff/1/Source/modules/accessibility/AXObject.cpp File Source/modules/accessibility/AXObject.cpp (right): https://codereview.chromium.org/1118753004/diff/1/Source/modules/accessibility/AXObject.cpp#newcode1138 Source/modules/accessibility/AXObject.cpp:1138: if (!scrollParent->isAXScrollView()) { Don't we need null checking ...
5 years, 7 months ago (2015-05-01 16:14:38 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1118753004/20001
5 years, 7 months ago (2015-05-01 16:52:22 UTC) #6
dmazzoni
https://codereview.chromium.org/1118753004/diff/1/Source/modules/accessibility/AXObject.cpp File Source/modules/accessibility/AXObject.cpp (right): https://codereview.chromium.org/1118753004/diff/1/Source/modules/accessibility/AXObject.cpp#newcode1138 Source/modules/accessibility/AXObject.cpp:1138: if (!scrollParent->isAXScrollView()) { On 2015/05/01 16:14:38, je_julie wrote: > ...
5 years, 7 months ago (2015-05-01 16:52:23 UTC) #7
commit-bot: I haz the power
5 years, 7 months ago (2015-05-01 18:16:18 UTC) #8
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=194818

Powered by Google App Engine
This is Rietveld 408576698