Fix Android hit testing in a totally static page.
commitb46a0cf36cb6eaee8bd8bae17ceb227a5bb8ad92
authordmazzoni <dmazzoni@chromium.org>
Thu, 16 Oct 2014 23:31:55 +0000 (16 16:31 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 16 Oct 2014 23:32:23 +0000 (16 23:32 +0000)
treee4ff33b067d6ae0b895af1260a9ba8e7bc08a133
parent05d3a41400d281475aeeda8570be6006dd73ce6c
Fix Android hit testing in a totally static page.

Our Android hit testing walks up the tree and returns the highest
ancestor that's either (1) a leaf node, or (2) focusable and doesn't
have focusable children.

The bug is that (2) shouldn't include the root element of the tree, which
is indeed focusable. If there are no focusable elements on the page, we don't
want all hit tests to return the root - we want them to return the original
object hit.

BUG=424350

Review URL: https://codereview.chromium.org/665513002

Cr-Commit-Position: refs/heads/master@{#300007}
content/browser/accessibility/browser_accessibility_manager_android.cc