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() {}
   };