Skip to content
  • yosin@chromium.org's avatar
    [ShadowDOM] Shadow elements in the input element should be focusable. · 77701e6f
    yosin@chromium.org authored
    https://bugs.webkit.org/show_bug.cgi?id=95169
    
    Reviewed by Kent Tamura.
    
    This patch introduces new virtual function HTMLElement::hasCustomFocusLogic()
    to allow input type implementations to use shadow element with focus
    navigation.
    
    No new tests. This patch doesn't change behavior.
    
    (WebCore::HTMLElement::hasCustomFocusLogic): Added to return false as
    default value.
    * html/HTMLElement.h:
    (HTMLElement): Added a declaration of hasCustomFocusLogic().
    * html/HTMLInputElement.cpp:
    (WebCore::HTMLInputElement::hasCustomFocusLogic): Added to call InputType::hasCustomFocusLogic(),
    * html/HTMLInputElement.h:
    (HTMLInputElement): Added a declaration of hasCustomFocusLogic().
    * html/HTMLMediaElement.cpp:
    (WebCore::HTMLMediaElement::hasCustomFocusLogic): Added to return true for "audio" and "video" elements.
    * html/HTMLMediaElement.h:
    (HTMLMediaElement): Add a declaration of hasCustomFocusLogic()
    * html/HTMLTextAreaElement.cpp:
    (WebCore::HTMLTextAreaElement::hasCustomFocusLogic): Added to return true.
    * html/HTMLTextAreaElement.h:
    (HTMLTextAreaElement): Add a declaration of hasCustomFocusLogic().
    * page/FocusController.cpp:
    (WebCore::hasCustomFocusLogic): Changed to call HTMLElement::hasCustomFocusLogic()
    rather than checking tag names.
    * html/InputType.cpp:
    (WebCore::InputType::hasCustomFocusLogic): Added to return true as default value.
    * html/InputType.h:
    (InputType): Added a declaration of hasCustomFocusLogic().
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@126842 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    77701e6f