Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1521)

Unified Diff: Source/modules/accessibility/AXARIAGridRow.cpp

Issue 890273002: Return table headers for aria tables. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/modules/accessibility/AXARIAGridRow.h ('k') | Source/modules/accessibility/AXTableColumn.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/accessibility/AXARIAGridRow.cpp
diff --git a/Source/modules/accessibility/AXARIAGridRow.cpp b/Source/modules/accessibility/AXARIAGridRow.cpp
index fa6dba1e5a02ec58d8fc0183a570035e30d1f987..957bd91741072d95c970b584bcbbc69cf4b955cc 100644
--- a/Source/modules/accessibility/AXARIAGridRow.cpp
+++ b/Source/modules/accessibility/AXARIAGridRow.cpp
@@ -71,4 +71,15 @@ AXObject* AXARIAGridRow::headerObject()
return 0;
}
+void AXARIAGridRow::headerObjectsForRow(AccessibilityChildrenVector& headers)
+{
+ AccessibilityChildrenVector rowChildren = children();
+ unsigned childrenCount = rowChildren.size();
+ for (unsigned i = 0; i < childrenCount; i++) {
+ AXObject* cell = rowChildren[i].get();
+ if (cell->roleValue() == RowHeaderRole)
+ headers.append(cell);
+ }
+}
+
} // namespace blink
« no previous file with comments | « Source/modules/accessibility/AXARIAGridRow.h ('k') | Source/modules/accessibility/AXTableColumn.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698