Skip to content
  • commit-queue@webkit.org's avatar
    [Gtk] No accessible caret-moved events found in certain content · 84ebe920
    commit-queue@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=72811
    
    Part of the bug was due to expected accessible objects of DivRole
    and ParagraphRole being ignored, in favor of including child blocks.
    
    Patch by Joanmarie Diggs <jdiggs@igalia.com> on 2012-09-01
    Reviewed by Chris Fleizach.
    
    Source/WebCore:
    
    Test: platform/gtk/accessibility/spans-paragraphs-and-divs.html
    
    * accessibility/AccessibilityObject.cpp:
    (WebCore::AccessibilityObject::firstAnonymousBlockChild):
    (WebCore):
    * accessibility/AccessibilityObject.h:
    (AccessibilityObject):
    New method to return the first child which is an anonymous block.
    * accessibility/gtk/AccessibilityObjectAtk.cpp:
    (WebCore::AccessibilityObject::accessibilityPlatformIncludesObject):
    Include paragraphs and divs which contain a non-nested anonymous block.
    
    LayoutTests:
    
    Added new test to verify that paragraphs and divs which contain anonymous
    blocks are included in the accessible object hierarchy and have the correct
    number of children with the expected role.
    
    * platform/gtk/accessibility/spans-paragraphs-and-divs-expected.txt: Added.
    * platform/gtk/accessibility/spans-paragraphs-and-divs.html: Added.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@127370 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    84ebe920