The code in WKContentViewInteraction.mm uses either [self _isInteractingWithFocusedElement] or hasFocusedElement(_focusedElementInformation) to check if there is a currently focused keyboard-assisted element. The former is just a convenience function for the latter. There is never more than one focused element so hasFocusedElement() is always passed _focusedElementInformation. So, let's remove hasFocusedElement() and standardize on -_isInteractingWithFocusedElement. We might as well consider renaming -_isInteractingWithFocusedElement at the same time.
Created attachment 394663 [details] Patch
<rdar://problem/60940521>
Comment on attachment 394663 [details] Patch Clearing flags on attachment: 394663 Committed r259091: <https://trac.webkit.org/changeset/259091>
All reviewed patches have been landed. Closing bug.