DescriptionMake it possible to focus on 0-size form controls and anchors.
We assumed form controls and anchor elements with 0-size were not
focusable. It's inconsistent with other elements with tabIndex or
contentEditable, and incompatible with IE11 and Firefox 23.
We remove rendererIsFocusable override of HTMLFormControlElement, and
remove renderer box check in HTMLAnchorElement::isKeyboardFocusable.
As for crbug.com/285595, when we removed focus from an input/textarea element by
0-size, the element kept the selection. So FrameSelection::setFocusedNodeIfNeeded
set focus on the element again when an editing command was invoked by a keyboard
input. This issue is revolved by this CL because we don't remove focus by
0-size.
BUG=168121, 285595
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=157405
Patch Set 1 : #
Messages
Total messages: 4 (0 generated)
|