Changeset 55680 in webkit
- Timestamp:
- Mar 8, 2010 1:06:08 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r55674 r55680 1 2010-03-08 Joanmarie Diggs <joanmarie.diggs@gmail.com> 2 3 Reviewed by Xan Lopez. 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: 9 * platform/gtk/accessibility/table-hierarchy-expected.txt: 10 1 11 2010-03-08 Adam Barth <abarth@webkit.org> 2 12 -
trunk/LayoutTests/platform/gtk/accessibility/table-hierarchy-expected.txt
r55623 r55680 4 4 3 4 5 5 hello world 6 Odd Even 7 1 8 9 2 10 11 3 12 13 4 14 6 15 This tests the Atk table hierarhy. 7 16 … … 12 21 PASS table2.role is 'table' 13 22 PASS table3.role is 'table' 23 PASS table4.role is 'table' 14 24 PASS children is 2 15 25 PASS table1.childAtIndex(i).role is 'table cell' … … 25 35 PASS table3.childAtIndex(i).role is 'table cell' 26 36 PASS table3.childAtIndex(i).role is 'table cell' 37 PASS children is 6 38 PASS table4.childAtIndex(i).role is 'table cell' 39 PASS table4.childAtIndex(i).role is 'table cell' 40 PASS table4.childAtIndex(i).role is 'table cell' 41 PASS table4.childAtIndex(i).role is 'table cell' 42 PASS table4.childAtIndex(i).role is 'table cell' 43 PASS table4.childAtIndex(i).role is 'table cell' 27 44 PASS successfullyParsed is true 28 45 -
trunk/LayoutTests/platform/gtk/accessibility/table-hierarchy.html
r55623 r55680 22 22 </tbody> 23 23 </table> 24 <table border=1> 25 <tr><th>Odd</th><th>Even</th></tr> 26 <tr><td><p>1</p></td><td><p>2</p></td></tr> 27 <tr><td><p>3</p></td><td><p>4</p></td></tr> 28 </table> 24 29 <p id="description"></p> 25 30 <div id="console"></div> … … 37 42 var table3 = webArea.childAtIndex(2); 38 43 shouldBe("table3.role", "'table'"); 44 var table4 = webArea.childAtIndex(3); 45 shouldBe("table4.role", "'table'"); 39 46 40 47 var children = table1.childrenCount; … … 53 60 shouldBe("table3.childAtIndex(i).role", "'table cell'"); 54 61 } 62 children = table4.childrenCount; 63 shouldBe("children", "6"); 64 for (i = 0; i < children; ++i) { 65 shouldBe("table4.childAtIndex(i).role", "'table cell'"); 66 } 55 67 } 56 68 successfullyParsed = true; -
trunk/WebCore/ChangeLog
r55676 r55680 1 2010-03-08 Joanmarie Diggs <joanmarie.diggs@gmail.com> 2 3 Reviewed by Xan Lopez. 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 Gives platforms the ability to exclude parts of an AccessibilityTable 9 from the accessible hierarchy. 10 11 * accessibility/gtk/AccessibilityObjectAtk.cpp: 12 (AccessibilityObject::accessibilityPlatformIncludesObject): 13 * accessibility/AccessibilityRenderObject.cpp: 14 (AccessibilityRenderObject::determineAccessibilityRole): 15 * accessibility/AccessibilityTable.cpp: 16 (AccessibilityTable::addChildren): 17 * accessibility/AccessibilityTableColumn.h: 18 (accessibilityIsIgnored): 19 * accessibility/AccessibilityTableHeaderContainer.h: 20 (accessibilityIsIgnored): 21 * accessibility/AccessibilityTableRow.cpp: 22 (accessibilityIsIgnored): 23 1 24 2010-03-08 Jian Li <jianli@chromium.org> 2 25 -
trunk/WebCore/accessibility/AccessibilityRenderObject.cpp
r55623 r55680 2739 2739 return CellRole; 2740 2740 2741 if (node && node->hasTagName(trTag)) 2742 return RowRole; 2743 2741 2744 if (node && node->hasTagName(tableTag)) 2742 2745 return TableRole; -
trunk/WebCore/accessibility/AccessibilityTable.cpp
r55390 r55680 251 251 row->setRowIndex((int)m_rows.size()); 252 252 m_rows.append(row); 253 m_children.append(row); 253 if (!row->accessibilityIsIgnored()) 254 m_children.append(row); 255 #if PLATFORM(GTK) 256 else 257 m_children.append(row->children()); 258 #endif 254 259 appendedRows.add(row); 255 260 } … … 266 271 column->setParentTable(this); 267 272 m_columns.append(column); 268 m_children.append(column); 273 if (!column->accessibilityIsIgnored()) 274 m_children.append(column); 269 275 } 270 276 271 277 AccessibilityObject* headerContainerObject = headerContainer(); 272 if (headerContainerObject )278 if (headerContainerObject && !headerContainerObject->accessibilityIsIgnored()) 273 279 m_children.append(headerContainerObject); 274 280 } -
trunk/WebCore/accessibility/AccessibilityTableColumn.h
r43833 r55680 51 51 52 52 virtual AccessibilityRole roleValue() const { return ColumnRole; } 53 #if PLATFORM(GTK) 54 virtual bool accessibilityIsIgnored() const { return true; } 55 #else 53 56 virtual bool accessibilityIsIgnored() const { return false; } 57 #endif 54 58 virtual bool isTableColumn() const { return true; } 55 59 -
trunk/WebCore/accessibility/AccessibilityTableHeaderContainer.h
r43833 r55680 49 49 virtual AccessibilityObject* parentObject() const { return m_parentTable; } 50 50 51 #if PLATFORM(GTK) 52 virtual bool accessibilityIsIgnored() const { return true; } 53 #else 51 54 virtual bool accessibilityIsIgnored() const { return false; } 55 #endif 52 56 53 57 virtual const AccessibilityChildrenVector& children(); -
trunk/WebCore/accessibility/AccessibilityTableRow.cpp
r50444 r55680 77 77 bool AccessibilityTableRow::accessibilityIsIgnored() const 78 78 { 79 #if PLATFORM(GTK) 80 if (true) 81 #else 79 82 if (!isTableRow()) 83 #endif 80 84 return AccessibilityRenderObject::accessibilityIsIgnored(); 81 85 -
trunk/WebCore/accessibility/gtk/AccessibilityObjectAtk.cpp
r55623 r55680 64 64 return IncludeObject; 65 65 66 // We at some point might have a need to expose a table row; but it's not standard Gtk+. 67 if (role == RowRole) 68 return IgnoreObject; 69 66 70 // The object containing the text should implement AtkText itself. 67 71 if (role == StaticTextRole)
Note: See TracChangeset
for help on using the changeset viewer.