Changeset 55623 in webkit


Ignore:
Timestamp:
Mar 6, 2010 6:40:37 AM (14 years ago)
Author:
eric@webkit.org
Message:

2010-03-06 Joanmarie Diggs <joanmarie.diggs@gmail.com>

Reviewed by Eric Seidel.

https://bugs.webkit.org/show_bug.cgi?id=30895
[Gtk] The accessible hierarchy of tables is significantly incorrect for Atk

  • platform/gtk/accessibility/table-hierarchy.html: Added.
  • platform/gtk/accessibility/table-hierarchy-expected.txt: Added.

2010-03-06 Joanmarie Diggs <joanmarie.diggs@gmail.com>

Reviewed by Eric Seidel.

https://bugs.webkit.org/show_bug.cgi?id=30895
[Gtk] The accessible hierarchy of tables is significantly incorrect for Atk

This completes the fixing of the Atk table hierarchy which was started
in bug #35418.

  • accessibility/gtk/AccessibilityObjectAtk.cpp: (AccessibilityObject::accessibilityPlatformIncludesObject):
  • accessibility/AccessibilityRenderObject.cpp: (AccessibilityRenderObject::determineAccessibilityRole):
Location:
trunk
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r55620 r55623  
     12010-03-06  Joanmarie Diggs  <joanmarie.diggs@gmail.com>
     2
     3        Reviewed by Eric Seidel.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=30895
     6        [Gtk] The accessible hierarchy of tables is significantly incorrect for Atk
     7
     8        * platform/gtk/accessibility/table-hierarchy.html: Added.
     9        * platform/gtk/accessibility/table-hierarchy-expected.txt: Added.
     10
    1112010-03-06  Hironori Bono  <hbono@chromium.org>
    212
  • trunk/WebCore/ChangeLog

    r55619 r55623  
     12010-03-06  Joanmarie Diggs  <joanmarie.diggs@gmail.com>
     2
     3        Reviewed by Eric Seidel.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=30895
     6        [Gtk] The accessible hierarchy of tables is significantly incorrect for Atk
     7
     8        This completes the fixing of the Atk table hierarchy which was started
     9        in bug #35418.
     10
     11        * accessibility/gtk/AccessibilityObjectAtk.cpp:
     12        (AccessibilityObject::accessibilityPlatformIncludesObject):
     13        * accessibility/AccessibilityRenderObject.cpp:
     14        (AccessibilityRenderObject::determineAccessibilityRole):
     15
    1162010-03-06  MORITA Hajime  <morrita@google.com>
    217
  • trunk/WebCore/accessibility/AccessibilityRenderObject.cpp

    r55611 r55623  
    27362736#if PLATFORM(GTK)
    27372737    // Gtk ATs expect all tables, data and layout, to be exposed as tables.
    2738     if (node && node->hasTagName(tdTag))
     2738    if (node && (node->hasTagName(tdTag) || node->hasTagName(thTag)))
    27392739        return CellRole;
    27402740
  • trunk/WebCore/accessibility/gtk/AccessibilityObjectAtk.cpp

    r55297 r55623  
    4242        return IgnoreObject;
    4343
    44     // When a list item is made up entirely of children (e.g. paragraphs)
    45     // the list item gets ignored. We need it.
    46     if (isGroup() && parent->isList())
    47         return IncludeObject;
     44    if (isGroup()) {
     45        // When a list item is made up entirely of children (e.g. paragraphs)
     46        // the list item gets ignored. We need it.
     47        if (parent->isList())
     48            return IncludeObject;
     49
     50        // We expect the parent of a table cell to be a table.
     51        AccessibilityObject* child = firstChild();
     52        if (child && child->roleValue() == CellRole)
     53            return IgnoreObject;
     54    }
    4855
    4956    // Entries and password fields have extraneous children which we want to ignore.
Note: See TracChangeset for help on using the changeset viewer.