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

Issue 2339093003: Support child-based node offsets when setting accessible selections (Closed)

Created:
4 years, 3 months ago by David Tseng
Modified:
4 years, 3 months ago
CC:
dmazzoni, aboxhall+watch_chromium.org, aboxhall, blink-reviews, chromium-reviews, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, haraken, je_julie, nektar+watch_chromium.org, yuzo+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Support child-based node offsets when setting accessible selections https://docs.google.com/document/d/1IZ7HtM0BZlMgNyYo6AUHGL84k RTnH4qt3fd-hXqfjvs/edit# Committed: https://crrev.com/f1dfcce84beb802d628d217044a5ceb046d18f05 Cr-Commit-Position: refs/heads/master@{#419325}

Patch Set 1 #

Patch Set 2 : Fix ChromeVox test. #

Patch Set 3 : More tests. #

Total comments: 10

Patch Set 4 : Make test changes. #

Patch Set 5 : Be more friendly. #

Patch Set 6 : Fix 0-childCount child node index case. #

Total comments: 2

Patch Set 7 : Decide on 0 childCount. #

Patch Set 8 : Correct the 0-child case. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+169 lines, -13 lines) Patch
A third_party/WebKit/LayoutTests/accessibility/set-selection-child-offset.html View 1 2 3 4 1 chunk +133 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp View 1 2 3 4 5 6 7 2 chunks +36 lines, -13 lines 0 comments Download

Messages

Total messages: 48 (33 generated)
David Tseng
Still somewhat wip (pending tests). Have a look at the proposed impl for the setting-side ...
4 years, 3 months ago (2016-09-14 17:52:52 UTC) #6
nektarios
I'll wait for the tests and then approve. static VisiblePosition toVisiblePosition(AXObject* obj, int offset) I ...
4 years, 3 months ago (2016-09-14 18:40:28 UTC) #9
David Tseng
PTAL. Added back curlies (re your comment) and added a test which shows child index ...
4 years, 3 months ago (2016-09-15 02:33:04 UTC) #15
dmazzoni
https://codereview.chromium.org/2339093003/diff/60001/third_party/WebKit/LayoutTests/accessibility/set-selection-child-offset.html File third_party/WebKit/LayoutTests/accessibility/set-selection-child-offset.html (right): https://codereview.chromium.org/2339093003/diff/60001/third_party/WebKit/LayoutTests/accessibility/set-selection-child-offset.html#newcode19 third_party/WebKit/LayoutTests/accessibility/set-selection-child-offset.html:19: var axGroup = accessibilityController.accessibleElementById("link").parentElement(); What element does this correspond ...
4 years, 3 months ago (2016-09-15 16:32:36 UTC) #22
David Tseng
https://codereview.chromium.org/2339093003/diff/60001/third_party/WebKit/LayoutTests/accessibility/set-selection-child-offset.html File third_party/WebKit/LayoutTests/accessibility/set-selection-child-offset.html (right): https://codereview.chromium.org/2339093003/diff/60001/third_party/WebKit/LayoutTests/accessibility/set-selection-child-offset.html#newcode19 third_party/WebKit/LayoutTests/accessibility/set-selection-child-offset.html:19: var axGroup = accessibilityController.accessibleElementById("link").parentElement(); On 2016/09/15 16:32:36, dmazzoni wrote: ...
4 years, 3 months ago (2016-09-15 18:34:28 UTC) #23
dmazzoni
https://codereview.chromium.org/2339093003/diff/60001/third_party/WebKit/LayoutTests/accessibility/set-selection-child-offset.html File third_party/WebKit/LayoutTests/accessibility/set-selection-child-offset.html (right): https://codereview.chromium.org/2339093003/diff/60001/third_party/WebKit/LayoutTests/accessibility/set-selection-child-offset.html#newcode62 third_party/WebKit/LayoutTests/accessibility/set-selection-child-offset.html:62: assert_equals(sel.endContainer.previousSibling.lastChild.lastChild, sel.startContainer); On 2016/09/15 at 18:34:28, David Tseng wrote: ...
4 years, 3 months ago (2016-09-15 21:06:43 UTC) #24
David Tseng
Changed axGroup to an axRegion, removed whitespace comment, and used compareDocumentPosition in place of explicit ...
4 years, 3 months ago (2016-09-15 21:48:22 UTC) #25
dmazzoni
lgtm https://codereview.chromium.org/2339093003/diff/110001/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp File third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp (right): https://codereview.chromium.org/2339093003/diff/110001/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp#newcode1828 third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp:1828: // Figure out what it means when |childCount| ...
4 years, 3 months ago (2016-09-16 18:10:56 UTC) #31
David Tseng
https://codereview.chromium.org/2339093003/diff/110001/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp File third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp (right): https://codereview.chromium.org/2339093003/diff/110001/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp#newcode1828 third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp:1828: // Figure out what it means when |childCount| is ...
4 years, 3 months ago (2016-09-16 20:50:31 UTC) #36
dmazzoni
On Fri, Sep 16, 2016 at 1:50 PM <dtseng@chromium.org> wrote: > This isn't a selection ...
4 years, 3 months ago (2016-09-16 21:37:58 UTC) #37
dmazzoni
On Fri, Sep 16, 2016 at 1:50 PM <dtseng@chromium.org> wrote: > This isn't a selection ...
4 years, 3 months ago (2016-09-16 21:37:59 UTC) #38
David Tseng
Let's hash it out on the doc. The position is a tree node offset not ...
4 years, 3 months ago (2016-09-16 23:25:57 UTC) #41
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/2339093003/150001
4 years, 3 months ago (2016-09-16 23:26:26 UTC) #44
commit-bot: I haz the power
Committed patchset #8 (id:150001)
4 years, 3 months ago (2016-09-16 23:34:33 UTC) #46
commit-bot: I haz the power
4 years, 3 months ago (2016-09-16 23:38:14 UTC) #48
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/f1dfcce84beb802d628d217044a5ceb046d18f05
Cr-Commit-Position: refs/heads/master@{#419325}

Powered by Google App Engine
This is Rietveld 408576698