commit | c8ffa6c4e8a10fd292013d2511e654f1b13fbc97 | [log] [tgz] |
---|---|---|
author | Alice Boxhall <[email protected]> | Tue Apr 09 02:39:44 2019 |
committer | Commit Bot <[email protected]> | Tue Apr 09 02:39:44 2019 |
tree | 7941c778aebe9ff6c840fdb6b12c2b6364c8b5fe | |
parent | d67338b6452208845c416389ba536574f283343d [diff] [blame] |
Prefer walking the LayoutTreeBuilder tree when building the Accessibility tree. This is in preparation for a change which will include elements with a display: contents style in the Accessibility tree. Since display: contents means an element will not get a LayoutObject, walking the Layout Tree means we miss some elements. Bug: 835455 Change-Id: I8ba18b3b44f6ee8d9d5972e1c6b87ca61460ba7e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1547617 Commit-Queue: Alice Boxhall <[email protected]> Reviewed-by: Akihiro Ota <[email protected]> Reviewed-by: Dominic Mazzoni <[email protected]> Cr-Commit-Position: refs/heads/master@{#648987}
diff --git a/ui/accessibility/ax_tree.h b/ui/accessibility/ax_tree.h index 1e8542b..5cc2035 100644 --- a/ui/accessibility/ax_tree.h +++ b/ui/accessibility/ax_tree.h
@@ -240,6 +240,7 @@ struct OrderedSetInfo { int32_t pos_in_set; int32_t set_size; + int32_t lowest_hierarchical_level; OrderedSetInfo() : pos_in_set(0), set_size(0) {} ~OrderedSetInfo() {} };