Skip to content
  • commit-queue@webkit.org's avatar
    [Gtk] No accessible caret-moved events found in certain content · ca1b1d2a
    commit-queue@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=72811
    
    Patch by Joanmarie Diggs <jdiggs@igalia.com> on 2012-08-21
    Reviewed by Chris Fleizach.
    
    Part of the bug is due to objects which should claim to implement AtkText
    failed to do so as a result of containing a mixture of inline and block
    spans.
    
    An updated unit test was provided.
    
    Source/WebCore:
    
    * accessibility/gtk/WebKitAccessibleWrapperAtk.cpp:
    (roleIsTextType): New method to check if a role is one expected to have
    implemented the AtkText interface. Currently that is defined as:
     - ParagraphRole
     - HeadingRole
     - DivRole
     - CellRole
    (getInterfaceMaskFromObject): If a role is one of the text type roles,
    automatically add WAI_TEXT to the accessible object's interface mask.
    
    Source/WebKit/gtk:
    
    * tests/testatk.c:
    (testWebkitAtkCaretOffsets): Added instances of objects containing a
    mixture of inline and block spans and tested that they implement AtkText
    and contain the right textual contents.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@126243 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    ca1b1d2a