Index: third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp |
diff --git a/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp b/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp |
index e8e12246b3cfcc83361b3bc9373fe65d5023f831..99c3c8855a6306bf60d1ab3e90c81cb7f3072e8a 100644 |
--- a/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp |
+++ b/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp |
@@ -718,12 +718,17 @@ bool AXLayoutObject::computeAccessibilityIsIgnored(IgnoredReasons* ignoredReason |
} |
return false; |
} |
+ |
if (isHeading()) |
return false; |
if (isLandmarkRelated()) |
return false; |
+ // Header and footer tags may also be exposed as landmark roles but not always. |
+ if (getNode() && (getNode()->hasTagName(headerTag) || getNode()->hasTagName(footerTag))) |
+ return false; |
+ |
if (isLink()) |
return false; |