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

Issue 742353004: Implement computedRole and computedName (behind a flag) (Closed)

Created:
6 years ago by aboxhall
Modified:
6 years ago
Reviewers:
dmazzoni, adamk
CC:
blink-reviews, arv+blink, sof, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, Inactive, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Implement computedRole and computedName, behind a flag in RuntimeEnabledFeatures. BUG=440454 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=187569

Patch Set 1 #

Total comments: 15

Patch Set 2 : AXObjectCache param threaded through #

Patch Set 3 : Finished pulling out ScopedAXObjectCache etc. Many fprintfs remain. #

Total comments: 12

Patch Set 4 : Rebase #

Patch Set 5 : Rebase #

Patch Set 6 : Fill roles #

Patch Set 7 : Set upstream correctly #

Total comments: 5

Patch Set 8 : Cleanups #

Patch Set 9 : Rename computedText to computedName and add test for computedRole #

Patch Set 10 : Put computedRole/computedName behind flag #

Patch Set 11 : Move interfaces on to Element #

Total comments: 24

Patch Set 12 : adamk review comments #

Total comments: 2

Patch Set 13 : dmazzoni review comments #

Total comments: 6

Patch Set 14 : adamk comments #

Patch Set 15 : Add test for computedName #

Patch Set 16 : Revert changes to core/testing #

Total comments: 32

Patch Set 17 : Amend computed-name test and tweak computedName logic #

Patch Set 18 : Remove fprintfs #

Total comments: 4

Patch Set 19 : Comments #

Total comments: 2

Patch Set 20 : const nit #

Patch Set 21 : Update webexposed/element-instance-property-listing.html and add some SVG test cases #

Unified diffs Side-by-side diffs Delta from patch set Stats (+998 lines, -74 lines) Patch
A LayoutTests/accessibility/computed-name.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +299 lines, -0 lines 0 comments Download
A LayoutTests/accessibility/computed-name-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +120 lines, -0 lines 0 comments Download
A LayoutTests/accessibility/computed-role.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +234 lines, -0 lines 0 comments Download
A LayoutTests/accessibility/computed-role-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +91 lines, -0 lines 0 comments Download
M LayoutTests/webexposed/element-instance-property-listing-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +4 lines, -0 lines 0 comments Download
M Source/core/dom/AXObjectCache.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +18 lines, -0 lines 0 comments Download
M Source/core/dom/AXObjectCache.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +30 lines, -0 lines 0 comments Download
M Source/core/dom/Element.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/dom/Element.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +14 lines, -0 lines 0 comments Download
M Source/core/dom/Element.idl View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download
M Source/modules/accessibility/AXNodeObject.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -2 lines 0 comments Download
M Source/modules/accessibility/AXNodeObject.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +34 lines, -0 lines 0 comments Download
M Source/modules/accessibility/AXObject.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 5 chunks +8 lines, -4 lines 0 comments Download
M Source/modules/accessibility/AXObject.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +88 lines, -66 lines 0 comments Download
M Source/modules/accessibility/AXObjectCacheImpl.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -0 lines 0 comments Download
M Source/modules/accessibility/AXObjectCacheImpl.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +44 lines, -0 lines 0 comments Download
M Source/platform/RuntimeEnabledFeatures.in View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M public/web/WebAXEnums.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 48 (10 generated)
aboxhall
https://codereview.chromium.org/742353004/diff/1/Source/core/dom/Node.cpp File Source/core/dom/Node.cpp (right): https://codereview.chromium.org/742353004/diff/1/Source/core/dom/Node.cpp#newcode91 Source/core/dom/Node.cpp:91: #include "modules/accessibility/AXObject.h" These are illegal includes, I had to ...
6 years ago (2014-12-03 00:00:13 UTC) #1
dmazzoni
https://codereview.chromium.org/742353004/diff/1/Source/core/dom/Node.cpp File Source/core/dom/Node.cpp (right): https://codereview.chromium.org/742353004/diff/1/Source/core/dom/Node.cpp#newcode91 Source/core/dom/Node.cpp:91: #include "modules/accessibility/AXObject.h" On 2014/12/03 00:00:13, aboxhall wrote: > These ...
6 years ago (2014-12-03 23:32:13 UTC) #3
aboxhall
Still lots of rough edges and fprintfs, but what do you think of this basic ...
6 years ago (2014-12-08 23:51:00 UTC) #4
dmazzoni
Good progress. How about splitting the AXObjectCache pointer in each AXObject into a standalone change ...
6 years ago (2014-12-09 00:49:51 UTC) #5
dmazzoni
Looking pretty good https://codereview.chromium.org/742353004/diff/180001/Source/modules/accessibility/AXObject.cpp File Source/modules/accessibility/AXObject.cpp (right): https://codereview.chromium.org/742353004/diff/180001/Source/modules/accessibility/AXObject.cpp#newcode90 Source/modules/accessibility/AXObject.cpp:90: // "option" isn't here because it ...
6 years ago (2014-12-12 00:41:48 UTC) #9
aboxhall
Addressed comments and added a test for computedRole. Decided to rename computedText to computedName, as ...
6 years ago (2014-12-13 01:38:36 UTC) #10
aboxhall
6 years ago (2014-12-16 01:08:00 UTC) #12
aboxhall
Moved methods on to Element.
6 years ago (2014-12-16 01:08:15 UTC) #13
adamk
First round of comments... https://codereview.chromium.org/742353004/diff/260001/Source/core/dom/AXObjectCache.cpp File Source/core/dom/AXObjectCache.cpp (right): https://codereview.chromium.org/742353004/diff/260001/Source/core/dom/AXObjectCache.cpp#newcode64 Source/core/dom/AXObjectCache.cpp:64: m_cache = AXObjectCache::create(m_document); This looks ...
6 years ago (2014-12-16 01:54:49 UTC) #14
aboxhall
https://codereview.chromium.org/742353004/diff/260001/Source/core/dom/AXObjectCache.cpp File Source/core/dom/AXObjectCache.cpp (right): https://codereview.chromium.org/742353004/diff/260001/Source/core/dom/AXObjectCache.cpp#newcode64 Source/core/dom/AXObjectCache.cpp:64: m_cache = AXObjectCache::create(m_document); On 2014/12/16 01:54:48, adamk wrote: > ...
6 years ago (2014-12-16 04:15:27 UTC) #15
adamk
https://codereview.chromium.org/742353004/diff/260001/Source/core/dom/AXObjectCache.cpp File Source/core/dom/AXObjectCache.cpp (right): https://codereview.chromium.org/742353004/diff/260001/Source/core/dom/AXObjectCache.cpp#newcode64 Source/core/dom/AXObjectCache.cpp:64: m_cache = AXObjectCache::create(m_document); On 2014/12/16 04:15:26, aboxhall wrote: > ...
6 years ago (2014-12-16 18:25:15 UTC) #16
dmazzoni
https://codereview.chromium.org/742353004/diff/40001/Source/modules/accessibility/AXObject.cpp File Source/modules/accessibility/AXObject.cpp (right): https://codereview.chromium.org/742353004/diff/40001/Source/modules/accessibility/AXObject.cpp#newcode141 Source/modules/accessibility/AXObject.cpp:141: { NoRole, "none" }, On 2014/12/13 01:38:36, aboxhall wrote: ...
6 years ago (2014-12-16 19:18:20 UTC) #17
adamk
https://codereview.chromium.org/742353004/diff/260001/Source/core/dom/AXObjectCache.cpp File Source/core/dom/AXObjectCache.cpp (right): https://codereview.chromium.org/742353004/diff/260001/Source/core/dom/AXObjectCache.cpp#newcode64 Source/core/dom/AXObjectCache.cpp:64: m_cache = AXObjectCache::create(m_document); On 2014/12/16 19:18:19, dmazzoni wrote: > ...
6 years ago (2014-12-16 19:25:24 UTC) #18
dmazzoni
On Tue, Dec 16, 2014 at 11:25 AM, <adamk@chromium.org> wrote: > > But not creating ...
6 years ago (2014-12-16 20:11:47 UTC) #19
aboxhall
https://codereview.chromium.org/742353004/diff/40001/Source/modules/accessibility/AXObject.cpp File Source/modules/accessibility/AXObject.cpp (right): https://codereview.chromium.org/742353004/diff/40001/Source/modules/accessibility/AXObject.cpp#newcode141 Source/modules/accessibility/AXObject.cpp:141: { NoRole, "none" }, On 2014/12/16 19:18:19, dmazzoni wrote: ...
6 years ago (2014-12-16 23:56:37 UTC) #20
adamk
A few more style nits, and please add tests for computedName. Figured I'd send these ...
6 years ago (2014-12-16 23:56:49 UTC) #21
adamk
On 2014/12/16 20:11:47, dmazzoni wrote: > On Tue, Dec 16, 2014 at 11:25 AM, <mailto:adamk@chromium.org> ...
6 years ago (2014-12-16 23:57:30 UTC) #22
aboxhall
Working on the test... https://codereview.chromium.org/742353004/diff/300001/Source/core/dom/AXObjectCache.h File Source/core/dom/AXObjectCache.h (right): https://codereview.chromium.org/742353004/diff/300001/Source/core/dom/AXObjectCache.h#newcode130 Source/core/dom/AXObjectCache.h:130: class ScopedAXObjectCache { On 2014/12/16 ...
6 years ago (2014-12-17 02:06:24 UTC) #23
aboxhall
Test added; PTAL
6 years ago (2014-12-17 03:22:11 UTC) #24
dmazzoni
lgtm Changes to tests are optional, but at a minimum please add some way to ...
6 years ago (2014-12-17 06:24:19 UTC) #25
adamk
https://codereview.chromium.org/742353004/diff/360001/Source/core/dom/AXObjectCache.cpp File Source/core/dom/AXObjectCache.cpp (right): https://codereview.chromium.org/742353004/diff/360001/Source/core/dom/AXObjectCache.cpp#newcode64 Source/core/dom/AXObjectCache.cpp:64: m_cache = AXObjectCache::create(m_document); Nit: might as well do this ...
6 years ago (2014-12-17 17:47:00 UTC) #26
aboxhall
https://codereview.chromium.org/742353004/diff/260001/Source/modules/accessibility/AXObject.cpp File Source/modules/accessibility/AXObject.cpp (right): https://codereview.chromium.org/742353004/diff/260001/Source/modules/accessibility/AXObject.cpp#newcode143 Source/modules/accessibility/AXObject.cpp:143: static Vector<AtomicString>* createRoleNameVector() On 2014/12/16 18:25:15, adamk wrote: > ...
6 years ago (2014-12-17 22:21:27 UTC) #27
adamk
Thanks for the explanation, I understand the issue now. Just a slight simplification suggestion in ...
6 years ago (2014-12-17 22:52:46 UTC) #28
aboxhall
https://codereview.chromium.org/742353004/diff/360001/LayoutTests/accessibility/computed-name.html File LayoutTests/accessibility/computed-name.html (right): https://codereview.chromium.org/742353004/diff/360001/LayoutTests/accessibility/computed-name.html#newcode10 LayoutTests/accessibility/computed-name.html:10: <div role="alertdialog" aria-label="alertdialog name">This is an alertdialog</div> On 2014/12/17 ...
6 years ago (2014-12-18 04:34:47 UTC) #29
aboxhall
On 2014/12/17 22:52:46, adamk wrote: > Thanks for the explanation, I understand the issue now. ...
6 years ago (2014-12-18 06:29:55 UTC) #30
aboxhall
On 2014/12/17 22:52:46, adamk wrote: > Thanks for the explanation, I understand the issue now. ...
6 years ago (2014-12-18 06:30:02 UTC) #31
aboxhall
On 2014/12/17 22:52:46, adamk wrote: > Thanks for the explanation, I understand the issue now. ...
6 years ago (2014-12-18 06:30:03 UTC) #32
dmazzoni
https://codereview.chromium.org/742353004/diff/360001/LayoutTests/accessibility/computed-name.html File LayoutTests/accessibility/computed-name.html (right): https://codereview.chromium.org/742353004/diff/360001/LayoutTests/accessibility/computed-name.html#newcode10 LayoutTests/accessibility/computed-name.html:10: <div role="alertdialog" aria-label="alertdialog name">This is an alertdialog</div> On 2014/12/18 ...
6 years ago (2014-12-18 18:02:22 UTC) #33
dmazzoni
https://codereview.chromium.org/742353004/diff/400001/Source/modules/accessibility/AXObjectCacheImpl.cpp File Source/modules/accessibility/AXObjectCacheImpl.cpp (right): https://codereview.chromium.org/742353004/diff/400001/Source/modules/accessibility/AXObjectCacheImpl.cpp#newcode1085 Source/modules/accessibility/AXObjectCacheImpl.cpp:1085: String AXObjectCacheImpl::computedNameForNode(Node* node) The logic for this looks fine, ...
6 years ago (2014-12-18 23:12:20 UTC) #34
aboxhall
https://codereview.chromium.org/742353004/diff/360001/LayoutTests/accessibility/computed-name.html File LayoutTests/accessibility/computed-name.html (right): https://codereview.chromium.org/742353004/diff/360001/LayoutTests/accessibility/computed-name.html#newcode10 LayoutTests/accessibility/computed-name.html:10: <div role="alertdialog" aria-label="alertdialog name">This is an alertdialog</div> On 2014/12/18 ...
6 years ago (2014-12-19 00:02:08 UTC) #35
adamk
Code lgtm now https://codereview.chromium.org/742353004/diff/420001/Source/modules/accessibility/AXObject.cpp File Source/modules/accessibility/AXObject.cpp (right): https://codereview.chromium.org/742353004/diff/420001/Source/modules/accessibility/AXObject.cpp#newcode60 Source/modules/accessibility/AXObject.cpp:60: RoleEntry roles[] = { Hopefully final ...
6 years ago (2014-12-19 00:07:46 UTC) #36
aboxhall
https://codereview.chromium.org/742353004/diff/420001/Source/modules/accessibility/AXObject.cpp File Source/modules/accessibility/AXObject.cpp (right): https://codereview.chromium.org/742353004/diff/420001/Source/modules/accessibility/AXObject.cpp#newcode60 Source/modules/accessibility/AXObject.cpp:60: RoleEntry roles[] = { On 2014/12/19 00:07:46, adamk wrote: ...
6 years ago (2014-12-19 00:20:38 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/742353004/440001
6 years ago (2014-12-19 00:28:51 UTC) #39
commit-bot: I haz the power
Internal error: failed to checkout. Please try again.
6 years ago (2014-12-19 02:08:02 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/742353004/460001
6 years ago (2014-12-19 03:32:27 UTC) #43
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/42742)
6 years ago (2014-12-19 07:43:39 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/742353004/460001
6 years ago (2014-12-19 21:59:04 UTC) #47
commit-bot: I haz the power
6 years ago (2014-12-19 23:46:55 UTC) #48
Message was sent while issue was closed.
Committed patchset #21 (id:460001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=187569

Powered by Google App Engine
This is Rietveld 408576698