Skip to content
  • cfleizach@apple.com's avatar
    AX: labels of checkboxes should, when hit-tested, return the checkbox · 3b920269
    cfleizach@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=29335
    
    Reviewed by Beth Dakin.
    
    WebCore: 
    
    When an accessibility hit test is done and it hits the label of a control element,
    the control element should be returned instead of nothing, since the label
    itself is usually ignored.
    
    Test: accessibility/label-for-control-hittest.html
    
    * accessibility/AccessibilityObject.h:
    (WebCore::AccessibilityObject::correspondingControlForLabelElement):
    * accessibility/AccessibilityRenderObject.cpp:
    (WebCore::AccessibilityRenderObject::accessibilityIsIgnored):
    (WebCore::AccessibilityRenderObject::doAccessibilityHitTest):
    (WebCore::AccessibilityRenderObject::correspondingControlForLabelElement):
    * accessibility/AccessibilityRenderObject.h:
    
    LayoutTests: 
    
    * accessibility/label-for-control-hittest-expected.txt: Added.
    * accessibility/label-for-control-hittest.html: Added.
    * platform/gtk/Skipped:
    * platform/win/Skipped:
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48482 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    3b920269