[Accessibility] Make shadow DOM Elements available to hit tests.
crrev.com/c/2051870 added DOM retargeting usage to AXLayoutObject::AccessibilityHitTest() so that accessibility hit test targets an <input> Element instead of its internals. However, the fix was too aggressive, and caused hit tests to miss Elements inside all shadow DOM, including those in custom elements (disregarding whether mode is "open" and "closed", and ignoring non-Element Nodes). This CL removes DOM retarget usage for accessibility hit test. Instead, when a Node in a shadow DOM is targeted, if the Node is in a user-agent shadow tree then the target is changed to the shadow root's host. Bug: 1111800 Change-Id: I8bcfaea0a113166464efe82f14f986c1bfa0c2c7 Fixed: 1111800 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2495660Reviewed-by:Dominic Mazzoni <dmazzoni@chromium.org> Commit-Queue: Samuel Huang <huangs@chromium.org> Cr-Commit-Position: refs/heads/master@{#821258}
Showing
Please register or sign in to comment