void AccessibilityTableCell::rowHeaders(AccessibilityChildrenVector& headers) { AccessibilityTable* parent = parentTable(); if (!parent) return; std::pair<unsigned, unsigned> rowRange; rowIndexRange(rowRange); std::pair<unsigned, unsigned> colRange; columnIndexRange(colRange); for (unsigned column = 0; column < colRange.first; column++) { AccessibilityTableCell* tableCell = parent->cellForColumnAndRow(column, rowRange.first); if (!tableCell || tableCell == this || headers.contains(tableCell)) continue; const AtomicString& scope = tableCell->getAttribute(scopeAttr); if (scope == "rowgroup" && isTableCellInSameRowGroup(tableCell)) headers.append(tableCell); else if (tableCell->isRowHeaderCell()) headers.append(tableCell); } }