| Index: Source/modules/accessibility/AXTableRow.cpp
|
| diff --git a/Source/modules/accessibility/AXTableRow.cpp b/Source/modules/accessibility/AXTableRow.cpp
|
| index 9cebfe2a8f102362421f16b9579850e485a23f59..c1e50d02e74626962db6f8a0375375576e772ffe 100644
|
| --- a/Source/modules/accessibility/AXTableRow.cpp
|
| +++ b/Source/modules/accessibility/AXTableRow.cpp
|
| @@ -126,4 +126,22 @@ AXObject* AXTableRow::headerObject()
|
| return cell;
|
| }
|
|
|
| +void AXTableRow::headerObjectsForRow(AccessibilityChildrenVector& headers)
|
| +{
|
| + if (!m_renderer || !m_renderer->isTableRow())
|
| + return;
|
| +
|
| + AccessibilityChildrenVector rowChildren = children();
|
| + unsigned childrenCount = rowChildren.size();
|
| + for (unsigned i = 0; i < childrenCount; i++) {
|
| + AXObject* cell = rowChildren[i].get();
|
| + if (!cell->isTableCell())
|
| + continue;
|
| +
|
| + AccessibilityRole headerRole = toAXTableCell(cell)->scanToDecideHeaderRole();
|
| + if (headerRole == RowHeaderRole)
|
| + headers.append(cell);
|
| + }
|
| +}
|
| +
|
| } // namespace blink
|
|
|