Index: content/browser/accessibility/browser_accessibility.cc |
diff --git a/content/browser/accessibility/browser_accessibility.cc b/content/browser/accessibility/browser_accessibility.cc |
index 2141fe3f982a5e6cc1a9fdf1ac5710e735524ab3..0a3719d4aaf401902b67ef3a8ffe55232bf0e35e 100644 |
--- a/content/browser/accessibility/browser_accessibility.cc |
+++ b/content/browser/accessibility/browser_accessibility.cc |
@@ -663,6 +663,12 @@ bool BrowserAccessibility::HasState(ui::AXState state_enum) const { |
return (GetState() >> state_enum) & 1; |
} |
+bool BrowserAccessibility::IsCellOrTableHeaderRole() const { |
+ return (GetRole() == ui::AX_ROLE_CELL || |
+ GetRole() == ui::AX_ROLE_COLUMN_HEADER || |
+ GetRole() == ui::AX_ROLE_ROW_HEADER); |
+} |
+ |
bool BrowserAccessibility::IsEditableText() const { |
// These roles don't have readonly set, but they're not editable text. |
if (GetRole() == ui::AX_ROLE_SCROLL_AREA || |