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

Issue 1012383002: Removes direct checking node on AXLayoutObject::determineAccessibilityRole. (Closed)

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

Description

Removes direct checking node on AXLayoutObject::determineAccessibilityRole. This patch removes direct checking node on AXLayoutObject::determine AccessibilityRole and moves it to AXNodeObject::determineAccessibility RoleUtil and makes the code general. Additionally, The conditions for LinkRole are merged and unnecessary conditions are removed such as isElementNode() because hasTagName() checks isHTMLElement() inside it. BUG=N/A R=dmazzoni Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=193324

Patch Set 1 #

Patch Set 2 : Moves LegendElement as well. #

Patch Set 3 : Add Test Cases #

Total comments: 1

Patch Set 4 : Update #

Patch Set 5 : Rebase #

Patch Set 6 : Rebase again #

Patch Set 7 : Update TC to avoid platform specific #

Patch Set 8 : Rebase #

Patch Set 9 : Update TC #

Total comments: 2

Patch Set 10 : Update TC again #

Total comments: 2

Patch Set 11 : Update nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+640 lines, -78 lines) Patch
A LayoutTests/accessibility/element-role-mapping-focusable.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +142 lines, -0 lines 0 comments Download
A LayoutTests/accessibility/element-role-mapping-focusable-expected.txt View 1 2 3 4 5 6 7 8 9 1 chunk +88 lines, -0 lines 0 comments Download
A LayoutTests/accessibility/element-role-mapping-normal.html View 1 2 3 1 chunk +95 lines, -0 lines 0 comments Download
A LayoutTests/accessibility/element-role-mapping-normal-expected.txt View 1 2 3 1 chunk +215 lines, -0 lines 0 comments Download
M Source/modules/accessibility/AXLayoutObject.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M Source/modules/accessibility/AXLayoutObject.cpp View 1 2 3 4 5 6 7 8 9 4 chunks +0 lines, -68 lines 0 comments Download
M Source/modules/accessibility/AXNodeObject.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M Source/modules/accessibility/AXNodeObject.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +99 lines, -9 lines 0 comments Download

Messages

Total messages: 32 (12 generated)
je_julie(Not used)
Hi Dominic, As to modify AX code on blink, I always think where I should ...
5 years, 9 months ago (2015-03-18 16:07:31 UTC) #2
je_julie(Not used)
Hi Dominic, PTAL.
5 years, 8 months ago (2015-03-30 04:31:07 UTC) #3
dmazzoni
Oops, sorry I missed this review. This looks excellent - thanks for consolidating this logic. ...
5 years, 8 months ago (2015-03-30 06:20:53 UTC) #4
je_julie(Not used)
On 2015/03/30 06:20:53, dmazzoni wrote: > Oops, sorry I missed this review. > > This ...
5 years, 8 months ago (2015-03-31 01:17:34 UTC) #5
dmazzoni
lgtm Thanks for the very comprehensive tests! https://codereview.chromium.org/1012383002/diff/40001/LayoutTests/accessibility/element-role-mapping-normal.html File LayoutTests/accessibility/element-role-mapping-normal.html (right): https://codereview.chromium.org/1012383002/diff/40001/LayoutTests/accessibility/element-role-mapping-normal.html#newcode40 LayoutTests/accessibility/element-role-mapping-normal.html:40: </main>> nit: ...
5 years, 8 months ago (2015-03-31 06:50:53 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1012383002/60001
5 years, 8 months ago (2015-03-31 11:50:37 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/49726)
5 years, 8 months ago (2015-03-31 11:55:27 UTC) #11
je_julie(Not used)
On 2015/03/31 11:55:27, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
5 years, 8 months ago (2015-03-31 14:47:06 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1012383002/80001
5 years, 8 months ago (2015-03-31 14:48:24 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/49753)
5 years, 8 months ago (2015-03-31 19:54:33 UTC) #17
je_julie(Not used)
On 2015/03/31 19:54:33, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
5 years, 8 months ago (2015-04-01 01:52:37 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1012383002/100001
5 years, 8 months ago (2015-04-01 01:53:03 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/49892)
5 years, 8 months ago (2015-04-01 06:42:22 UTC) #23
je_julie(Not used)
Hi Dominic, The test from this patch had a specific result of platforms. So, I ...
5 years, 8 months ago (2015-04-05 07:29:05 UTC) #24
dmazzoni
https://codereview.chromium.org/1012383002/diff/160001/LayoutTests/accessibility/element-role-mapping-focusable.html File LayoutTests/accessibility/element-role-mapping-focusable.html (right): https://codereview.chromium.org/1012383002/diff/160001/LayoutTests/accessibility/element-role-mapping-focusable.html#newcode75 LayoutTests/accessibility/element-role-mapping-focusable.html:75: shouldBe("axElement.role", "'AXRole: AXLink'"); If this were to fail and ...
5 years, 8 months ago (2015-04-06 06:05:45 UTC) #25
je_julie(Not used)
On 2015/04/06 06:05:45, dmazzoni wrote: > https://codereview.chromium.org/1012383002/diff/160001/LayoutTests/accessibility/element-role-mapping-focusable.html#newcode115 > LayoutTests/accessibility/element-role-mapping-focusable.html:115: case 17: > I'm assuming the ...
5 years, 8 months ago (2015-04-07 10:59:28 UTC) #26
dmazzoni
lgtm https://codereview.chromium.org/1012383002/diff/180001/LayoutTests/accessibility/element-role-mapping-focusable.html File LayoutTests/accessibility/element-role-mapping-focusable.html (right): https://codereview.chromium.org/1012383002/diff/180001/LayoutTests/accessibility/element-role-mapping-focusable.html#newcode80 LayoutTests/accessibility/element-role-mapping-focusable.html:80: function hasRole(id,expectedRole) { nit: space after comma
5 years, 8 months ago (2015-04-07 16:01:23 UTC) #27
je_julie(Not used)
Thanks. I updated it. https://codereview.chromium.org/1012383002/diff/180001/LayoutTests/accessibility/element-role-mapping-focusable.html File LayoutTests/accessibility/element-role-mapping-focusable.html (right): https://codereview.chromium.org/1012383002/diff/180001/LayoutTests/accessibility/element-role-mapping-focusable.html#newcode80 LayoutTests/accessibility/element-role-mapping-focusable.html:80: function hasRole(id,expectedRole) { On 2015/04/07 ...
5 years, 8 months ago (2015-04-08 03:50:40 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1012383002/200001
5 years, 8 months ago (2015-04-08 04:03:26 UTC) #31
commit-bot: I haz the power
5 years, 8 months ago (2015-04-08 04:31:26 UTC) #32
Message was sent while issue was closed.
Committed patchset #11 (id:200001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=193324

Powered by Google App Engine
This is Rietveld 408576698