Index: Source/core/accessibility/AXRenderObject.cpp |
diff --git a/Source/core/accessibility/AXRenderObject.cpp b/Source/core/accessibility/AXRenderObject.cpp |
index 05c40804f5ff5fb854cd1445ab2f7325e8b6ff48..f6e6c036196c0a5aec88121f17b24eaa2215d14a 100644 |
--- a/Source/core/accessibility/AXRenderObject.cpp |
+++ b/Source/core/accessibility/AXRenderObject.cpp |
@@ -598,7 +598,7 @@ bool AXRenderObject::computeAccessibilityIsIgnored() const |
if (roleValue() == IgnoredRole) |
return true; |
- if (roleValue() == PresentationalRole || inheritsPresentationalRole()) |
+ if ((roleValue() == NoneRole || roleValue() == PresentationalRole) || inheritsPresentationalRole()) |
return true; |
// An ARIA tree can only have tree items and static text as children. |
@@ -2296,7 +2296,7 @@ bool AXRenderObject::inheritsPresentationalRole() const |
QualifiedName tagName = toElement(elementNode)->tagQName(); |
if (tagName == ulTag || tagName == olTag || tagName == dlTag) |
- return parent->roleValue() == PresentationalRole; |
+ return (parent->roleValue() == NoneRole || parent->roleValue() == PresentationalRole); |
return false; |
} |