Fix ScrollToMakeVisible accessibility action
The ConvertToAXActionData() function in automation_internal_api.cc was leaving the horizontal_scroll_alignment and vertical_scroll_alignment fields in AXActionData to their default value of ax::mojom::ScrollAlignment::kNone. When the target was a blink object, web_ax_object.cc would then use 'no scroll' values for both hidden and partially hidden cases for its converted blink::ScrollAlignment struct. This was causing the SCROLLTOMAKEVISIBLE action to not scroll the view to make the object visible. Bug: 1015144 Test: Manual test with display assistant screen reader Change-Id: I20dcd48587704ba42a33c7d27fb81c7d8a8a4ec6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1864824Reviewed-by:David Tseng <dtseng@chromium.org> Commit-Queue: Randy Rossi <rmrossi@chromium.org> Cr-Commit-Position: refs/heads/master@{#707377}
Showing
Please register or sign in to comment