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

Issue 2791943002: Re-land: Initial skeleton of Accessibility Object Model Phase 1 (Closed)

Created:
3 years, 8 months ago by dmazzoni
Modified:
3 years, 8 months ago
Reviewers:
esprehn, aboxhall
CC:
chromium-reviews, aboxhall, aboxhall+watch_chromium.org, eae+blinkwatch, sof, nektar+watch_chromium.org, dglazkov+blink, yuzo+watch_chromium.org, haraken, blink-reviews-dom_chromium.org, nektarios, je_julie, dougt+watch_chromium.org, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, blink-reviews, kinuko+watch, dmazzoni, rwlbuis
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Re-land: Initial skeleton of Accessibility Object Model Phase 1 Landed: r460670 - https://codereview.chromium.org/2750533006/ Reverted: r461332 - https://codereview.chromium.org/2796553002 See the diff between patch set 1 and patch set 2 for the fix to the crash that the initial patch caused. Explainer: https://github.com/WICG/aom/blob/master/explainer.md Spec: https://wicg.github.io/aom/spec/ This change adds an accessibleNode getter on Element, and implements the role and label properties of AccessibleNode, including a LayoutTest of the supported functionality. Properties on an AccessibleNode are stored in a map for efficiency since there are dozens of possible properties and few will need to be set on any one particular object. In existing accessibility code, places where we previously retrieve an ARIA attribute are replaced with a new wrapper that first checks the ARIA attribute and then checks the equivalent AOM property. Once this change lands it should be relatively straightforward to implement the rest of the properties of AccessibleNode and complete Phase 1. BUG=680345, 707218 TBR=haraken,aboxhall,esprehn Review-Url: https://codereview.chromium.org/2791943002 Cr-Commit-Position: refs/heads/master@{#461438} Committed: https://chromium.googlesource.com/chromium/src/+/46fca1f2e467228e197bb0c792450ad54667bd5e

Patch Set 1 #

Patch Set 2 : Fix for crash with test #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+452 lines, -9 lines) Patch
A third_party/WebKit/LayoutTests/accessibility/aom.html View 1 chunk +196 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/accessibility/document-element-display-none-crash.html View 1 1 chunk +11 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/element-instance-property-listing-expected.txt View 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 2 chunks +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/core_idl_files.gni View 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/Source/core/dom/AccessibleNode.h View 1 chunk +58 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/dom/AccessibleNode.cpp View 1 chunk +85 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/dom/AccessibleNode.idl View 1 chunk +13 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Element.h View 2 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Element.cpp View 1 chunk +18 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Element.idl View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ElementRareData.h View 4 chunks +13 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/ElementRareData.cpp View 3 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp View 1 5 chunks +9 lines, -5 lines 2 comments Download
M third_party/WebKit/Source/modules/accessibility/AXObject.h View 2 chunks +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXObject.cpp View 3 chunks +12 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.h View 2 chunks +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/RuntimeEnabledFeatures.json5 View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (9 generated)
dmazzoni
@aboxhall or @esprehn, please take a quick look at the difference between patch set 1 ...
3 years, 8 months ago (2017-04-03 07:25:16 UTC) #5
aboxhall
lgtm https://codereview.chromium.org/2791943002/diff/20001/third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp File third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp (right): https://codereview.chromium.org/2791943002/diff/20001/third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp#newcode2932 third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp:2932: const AtomicString& ariaLabel = AccessibleNode::getProperty( This looks good, ...
3 years, 8 months ago (2017-04-03 08:41:55 UTC) #6
dmazzoni
Thanks https://codereview.chromium.org/2791943002/diff/20001/third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp File third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp (right): https://codereview.chromium.org/2791943002/diff/20001/third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp#newcode2932 third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp:2932: const AtomicString& ariaLabel = AccessibleNode::getProperty( On 2017/04/03 08:41:55, ...
3 years, 8 months ago (2017-04-03 15:25:48 UTC) #9
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/2791943002/20001
3 years, 8 months ago (2017-04-03 15:26:15 UTC) #11
commit-bot: I haz the power
3 years, 8 months ago (2017-04-03 15:37:53 UTC) #14
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/46fca1f2e467228e197bb0c79245...

Powered by Google App Engine
This is Rietveld 408576698