DescriptionConsider focusability even when tabs-to-links is enabled for <svg:a>
SVGAElement::isKeyboardFocusable could end up returning 'true' even when
the element wasn't focusable (because it had "display: none" and hence
no LayoutObject) because the value of the 'tabsToLinks' setting would be
returned without further checks. Because it wasn't focusable
setFocusedElement would not do anything, and focus would remain where it
was previously.
Make sure the focusable check is considered in this case. This makes the
SVGAElement version of this code look the same as the HTMLAnchorElement
version.
BUG=586200
Committed: https://crrev.com/ad66827206bf24e41a4afa7dd7c3083157506c6c
Cr-Commit-Position: refs/heads/master@{#375713}
Patch Set 1 #
Messages
Total messages: 9 (4 generated)
|