Index: content/browser/accessibility/browser_accessibility_cocoa.mm |
diff --git a/content/browser/accessibility/browser_accessibility_cocoa.mm b/content/browser/accessibility/browser_accessibility_cocoa.mm |
index c7c569725f607ca99458319b4ee5bb68c743bfe4..06b17ccdb8a4d6bc87095e847adcdfe6705974a0 100644 |
--- a/content/browser/accessibility/browser_accessibility_cocoa.mm |
+++ b/content/browser/accessibility/browser_accessibility_cocoa.mm |
@@ -233,7 +233,7 @@ NSDictionary* attributeToMethodNameMap = nil; |
} |
- (NSValue*)columnIndexRange { |
- if ([self internalRole] != ui::AX_ROLE_CELL) |
+ if (!browserAccessibility_->IsCellOrTableHeaderRole()) |
return nil; |
int column = -1; |
@@ -666,7 +666,7 @@ NSDictionary* attributeToMethodNameMap = nil; |
} |
- (NSValue*)rowIndexRange { |
- if ([self internalRole] != ui::AX_ROLE_CELL) |
+ if (!browserAccessibility_->IsCellOrTableHeaderRole()) |
return nil; |
int row = -1; |
@@ -1074,7 +1074,7 @@ NSDictionary* attributeToMethodNameMap = nil; |
j < child->PlatformChildCount(); |
++j) { |
BrowserAccessibility* cell = child->PlatformGetChild(j); |
- if (cell->GetRole() != ui::AX_ROLE_CELL) |
+ if (!browserAccessibility_->IsCellOrTableHeaderRole()) |
continue; |
int colIndex; |
if (!cell->GetIntAttribute( |