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

Issue 661183002: Fix case where accessible scrollToMakeVisible didn't work. (Closed)

Created:
6 years, 2 months ago by dmazzoni
Modified:
6 years, 2 months ago
Reviewers:
aboxhall
CC:
blink-reviews, dmazzoni, aboxhall
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Fix case where accessible scrollToMakeVisible didn't work. The particular broken case is when the object to be made visible is inside of a scrollable container that's larger than the viewport (window). Previously, the code scrolled the object to be visible within the container, then recursively scrolled the container to be visible within the viewport. That doesn't necessarily work if the container is larger than the viewport. Now it passes the coordinates of the original object up recursively as the "subfocus". In addition, this change centers the object within the viewport, rather than scrolling minimally to get it in view. This more closely matches how the browser normally behaves when you focus something offscreen, and makes for a better experience on Android, where we use this function extensively every time you move accessibility focus. Well-covered by existing tests, plus a new test for the case that didn't previously work. BUG=374316, 424691 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=183926

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address feedback #

Patch Set 3 : Fix test expectation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -46 lines) Patch
M LayoutTests/accessibility/scroll-to-make-visible-main-window.html View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/accessibility/scroll-to-make-visible-main-window-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
A + LayoutTests/accessibility/scroll-to-make-visible-nested-2.html View 2 chunks +9 lines, -16 lines 0 comments Download
A + LayoutTests/accessibility/scroll-to-make-visible-nested-2-expected.txt View 1 2 1 chunk +4 lines, -6 lines 0 comments Download
M Source/core/accessibility/AXObject.cpp View 1 5 chunks +46 lines, -24 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
dmazzoni
6 years, 2 months ago (2014-10-17 18:57:34 UTC) #2
aboxhall
Trying to understand why the changes to computeBestScrollOffset are necessary... https://codereview.chromium.org/661183002/diff/1/Source/core/accessibility/AXObject.cpp File Source/core/accessibility/AXObject.cpp (right): https://codereview.chromium.org/661183002/diff/1/Source/core/accessibility/AXObject.cpp#newcode664 ...
6 years, 2 months ago (2014-10-17 19:30:09 UTC) #3
dmazzoni
https://codereview.chromium.org/661183002/diff/1/Source/core/accessibility/AXObject.cpp File Source/core/accessibility/AXObject.cpp (right): https://codereview.chromium.org/661183002/diff/1/Source/core/accessibility/AXObject.cpp#newcode664 Source/core/accessibility/AXObject.cpp:664: // Before: On 2014/10/17 19:30:09, aboxhall wrote: > Is ...
6 years, 2 months ago (2014-10-17 19:41:35 UTC) #4
aboxhall
lgtm
6 years, 2 months ago (2014-10-17 19:59:18 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/661183002/40001
6 years, 2 months ago (2014-10-17 20:26:35 UTC) #7
commit-bot: I haz the power
6 years, 2 months ago (2014-10-17 21:35:21 UTC) #8
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as 183926

Powered by Google App Engine
This is Rietveld 408576698