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

Issue 2169273004: Switch all LayoutTests to use new accessibility relative bounding box API. (Closed)

Created:
4 years, 5 months ago by dmazzoni
Modified:
4 years, 4 months ago
Reviewers:
Mike West, aboxhall
CC:
aboxhall, aboxhall+watch_chromium.org, ajuma+watch-canvas_chromium.org, ajuma+watch_chromium.org, blink-reviews, blink-reviews-dom_chromium.org, blink-reviews-layout_chromium.org, blink-reviews-platform-graphics_chromium.org, Rik, chromium-reviews, danakj+watch_chromium.org, dglazkov+blink, dmazzoni+watch_chromium.org, dmazzoni, dshwang, drott+blinkwatch_chromium.org, krit, dtseng+watch_chromium.org, eae+blinkwatch, f(malita), haraken, jbroman, jchaffraix+rendering, je_julie, jochen+watch_chromium.org, Justin Novosad, leviw+renderwatch, mlamouri+watch-test-runner_chromium.org, nektarios, nektar+watch_chromium.org, pdr+graphicswatchlist_chromium.org, pdr+renderingwatchlist_chromium.org, rwlbuis, Stephen Chennney, sof, szager+layoutwatch_chromium.org, yuzo+watch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Switch all LayoutTests to use new accessibility relative bounding box API. This change switches test_runner to use only the new relative bounding box API to get bounding boxes of accessibility elements. I made a few fixes in order to get existing tests to pass: * Support explicit element rects inside a canvas * Implement bounding boxes for inline text boxes * Bounding box for LayoutText needs to clip to ellipses * Bounding box for LayoutInline needs to include continuations The next step will be to switch Chrome to use the new API, then we can delete the old bounding box code from blink. BUG=618120 Committed: https://crrev.com/ff627eb09af66b38346b18b03591e07ae9e0f41a Cr-Commit-Position: refs/heads/master@{#409079}

Patch Set 1 #

Patch Set 2 : Fixed some test failures #

Patch Set 3 : Make two tests more robust #

Total comments: 14

Patch Set 4 : Address feedback from aboxhall #

Patch Set 5 : Fix LayoutTest expectations #

Patch Set 6 : Fix absolute bounds in AXInlineTextBox::elementRect #

Unified diffs Side-by-side diffs Delta from patch set Stats (+195 lines, -46 lines) Patch
M components/test_runner/web_ax_object_proxy.cc View 1 3 chunks +11 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/accessibility/bounds-calc.html View 2 chunks +20 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/accessibility/dimensions-include-descendants.html View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/accessibility/draw-focus-if-needed.html View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/accessibility/draw-focus-if-needed-expected.txt View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/accessibility/svg-bounds.html View 3 chunks +3 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/accessibility/svg-bounds-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/canvas/canvas-hit-regions-accessibility-test.html View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/canvas/canvas-hit-regions-accessibility-test-expected.txt View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/AXObjectCache.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutText.h View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutText.cpp View 1 2 3 4 2 chunks +6 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/line/AbstractInlineTextBox.h View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/line/AbstractInlineTextBox.cpp View 1 2 3 4 5 1 chunk +9 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXInlineTextBox.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXInlineTextBox.cpp View 1 2 3 4 5 1 chunk +14 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXLayoutObject.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp View 1 2 3 4 5 chunks +33 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXNodeObject.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp View 1 2 3 2 chunks +61 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXObject.h View 1 2 3 3 chunks +7 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXObject.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp View 1 2 3 4 2 chunks +7 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp View 1 2 3 4 1 chunk +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/geometry/FloatRect.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 36 (27 generated)
dmazzoni
Ready for a look
4 years, 4 months ago (2016-07-27 07:36:33 UTC) #14
aboxhall
https://codereview.chromium.org/2169273004/diff/40001/third_party/WebKit/LayoutTests/accessibility/draw-focus-if-needed.html File third_party/WebKit/LayoutTests/accessibility/draw-focus-if-needed.html (right): https://codereview.chromium.org/2169273004/diff/40001/third_party/WebKit/LayoutTests/accessibility/draw-focus-if-needed.html#newcode13 third_party/WebKit/LayoutTests/accessibility/draw-focus-if-needed.html:13: <div id="console"></div> Is this intentional? Does it change the ...
4 years, 4 months ago (2016-07-28 18:40:43 UTC) #17
dmazzoni
+mkwst - would you be willing to do an owners review? Let me know if ...
4 years, 4 months ago (2016-07-28 21:43:16 UTC) #19
aboxhall
lgtm https://codereview.chromium.org/2169273004/diff/40001/third_party/WebKit/LayoutTests/accessibility/svg-bounds-expected.txt File third_party/WebKit/LayoutTests/accessibility/svg-bounds-expected.txt (right): https://codereview.chromium.org/2169273004/diff/40001/third_party/WebKit/LayoutTests/accessibility/svg-bounds-expected.txt#newcode29 third_party/WebKit/LayoutTests/accessibility/svg-bounds-expected.txt:29: MouthY: 275 On 2016/07/28 21:43:16, dmazzoni wrote: > ...
4 years, 4 months ago (2016-07-28 22:13:10 UTC) #22
Mike West
The approach looks good, but the test failures look relevant. Happy to stamp this if ...
4 years, 4 months ago (2016-08-01 11:46:17 UTC) #25
aboxhall
lgtm
4 years, 4 months ago (2016-08-01 21:37:14 UTC) #28
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/2169273004/100001
4 years, 4 months ago (2016-08-01 22:01:13 UTC) #33
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 4 months ago (2016-08-01 22:38:37 UTC) #34
commit-bot: I haz the power
4 years, 4 months ago (2016-08-01 22:41:16 UTC) #36
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/ff627eb09af66b38346b18b03591e07ae9e0f41a
Cr-Commit-Position: refs/heads/master@{#409079}

Powered by Google App Engine
This is Rietveld 408576698