Commit 9ea40b16 authored by Aaron Leventhal's avatar Aaron Leventhal Committed by Commit Bot

Remove strange focusable check

This strange check seems to imply that being focusable would make it
more likely for a node to be ignored.

Bug: None
Change-Id: I57fbdab2ece01294af78158b3f2b3400ff5d811e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2113680Reviewed-by: default avatarDominic Mazzoni <dmazzoni@chromium.org>
Commit-Queue: Aaron Leventhal <aleventhal@chromium.org>
Cr-Commit-Position: refs/heads/master@{#752554}
parent 43020c8f
......@@ -728,7 +728,7 @@ bool AXLayoutObject::ComputeAccessibilityIsIgnored(
// are usually dummy layout objects that pad out the tree, but there are
// some exceptions below.
auto* block_flow = DynamicTo<LayoutBlockFlow>(*layout_object_);
if (block_flow && block_flow->ChildrenInline() && !CanSetFocusAttribute()) {
if (block_flow && block_flow->ChildrenInline()) {
// If the layout object has any plain text in it, that text will be
// inside a LineBox, so the layout object will have a first LineBox.
bool has_any_text = HasLineBox(*block_flow);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment