Index: content/browser/accessibility/browser_accessibility_android.cc |
diff --git a/content/browser/accessibility/browser_accessibility_android.cc b/content/browser/accessibility/browser_accessibility_android.cc |
index 9073c16441f0fdf4b013615eb9a479440a576a30..d6a22a9a2c20673f1d8ef806d46e807727f8d41e 100644 |
--- a/content/browser/accessibility/browser_accessibility_android.cc |
+++ b/content/browser/accessibility/browser_accessibility_android.cc |
@@ -194,6 +194,11 @@ bool BrowserAccessibilityAndroid::IsFocused() const { |
} |
bool BrowserAccessibilityAndroid::IsHeading() const { |
+ BrowserAccessibilityAndroid* parent = |
+ static_cast<BrowserAccessibilityAndroid*>(GetParent()); |
+ if (parent && parent->IsHeading()) |
+ return true; |
+ |
return (GetRole() == ui::AX_ROLE_COLUMN_HEADER || |
GetRole() == ui::AX_ROLE_HEADING || |
GetRole() == ui::AX_ROLE_ROW_HEADER); |