[orca] Remove role check for getting row/column headers



commit d8b21626cde887c899eccdb8cc76f52897c64588
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Fri Oct 7 15:14:59 2022 +0200

    Remove role check for getting row/column headers
    
    Because row/column headers might themselves have headers.

 src/orca/script_utilities.py | 6 ------
 1 file changed, 6 deletions(-)
---
diff --git a/src/orca/script_utilities.py b/src/orca/script_utilities.py
index 52f6cc306..adbda530f 100644
--- a/src/orca/script_utilities.py
+++ b/src/orca/script_utilities.py
@@ -4479,9 +4479,6 @@ class Utilities:
         return pyatspi.findAncestor(obj, isHeader)
 
     def columnHeadersForCell(self, obj):
-        if not (obj and obj.getRole() == pyatspi.ROLE_TABLE_CELL):
-            return []
-
         if 'TableCell' in pyatspi.listInterfaces(obj):
             tableCell = obj.queryTableCell()
             try:
@@ -4509,9 +4506,6 @@ class Utilities:
         return headers
 
     def rowHeadersForCell(self, obj):
-        if not (obj and obj.getRole() == pyatspi.ROLE_TABLE_CELL):
-            return []
-
         if 'TableCell' in pyatspi.listInterfaces(obj):
             tableCell = obj.queryTableCell()
             try:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]