Changeset 55297 in webkit


Ignore:
Timestamp:
Feb 26, 2010 12:08:07 PM (14 years ago)
Author:
eric@webkit.org
Message:

2010-02-26 Joanmarie Diggs <joanmarie.diggs@gmail.com>

Reviewed by Xan Lopez.

https://bugs.webkit.org/show_bug.cgi?id=35418
[Gtk] Every table, including layout tables, should be exposed as a table

This patch exposes layout tables as tables. (Addressing the problematic table
hierarchy remains to be done.)

  • accessibility/gtk/AccessibilityObjectAtk.cpp: (AccessibilityObject::accessibilityPlatformIncludesObject):
  • accessibility/AccessibilityRenderObject.cpp: (AccessibilityRenderObject::determineAccessibilityRole):
Location:
trunk/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r55290 r55297  
     12010-02-26  Joanmarie Diggs  <joanmarie.diggs@gmail.com>
     2
     3        Reviewed by Xan Lopez.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=35418
     6        [Gtk] Every table, including layout tables, should be exposed as a table
     7
     8        This patch exposes layout tables as tables. (Addressing the problematic table
     9        hierarchy remains to be done.)
     10
     11        * accessibility/gtk/AccessibilityObjectAtk.cpp:
     12        (AccessibilityObject::accessibilityPlatformIncludesObject):
     13        * accessibility/AccessibilityRenderObject.cpp:
     14        (AccessibilityRenderObject::determineAccessibilityRole):
     15
    1162010-02-26  Adam Barth  <abarth@webkit.org>
    217
  • trunk/WebCore/accessibility/AccessibilityRenderObject.cpp

    r55095 r55297  
    27272727    if (node && (node->hasTagName(rpTag) || node->hasTagName(rtTag)))
    27282728        return AnnotationRole;
    2729    
     2729
     2730#if PLATFORM(GTK)
     2731    // Gtk ATs expect all tables, data and layout, to be exposed as tables.
     2732    if (node && node->hasTagName(tdTag))
     2733        return CellRole;
     2734
     2735    if (node && node->hasTagName(tableTag))
     2736        return TableRole;
     2737#endif   
     2738
    27302739    if (m_renderer->isBlockFlow() || (node && node->hasTagName(labelTag)))
    27312740        return GroupRole;
  • trunk/WebCore/accessibility/gtk/AccessibilityObjectAtk.cpp

    r53512 r55297  
    5151        return IgnoreObject;
    5252
     53    AccessibilityRole role = roleValue();
     54
     55    // Include all tables, even layout tables. The AT can decide what to do with each.
     56    if (role == CellRole || role == TableRole)
     57        return IncludeObject;
     58
    5359    // The object containing the text should implement AtkText itself.
    54     if (roleValue() == StaticTextRole)
     60    if (role == StaticTextRole)
    5561        return IgnoreObject;
    5662
Note: See TracChangeset for help on using the changeset viewer.