Index: Source/modules/accessibility/AXRenderObject.cpp |
diff --git a/Source/modules/accessibility/AXRenderObject.cpp b/Source/modules/accessibility/AXRenderObject.cpp |
index 36cac22763c6e9ebd1dcfefb04cd21c80a494b5c..1073f3a48ee57698f69f2e011e07702122fd4964 100644 |
--- a/Source/modules/accessibility/AXRenderObject.cpp |
+++ b/Source/modules/accessibility/AXRenderObject.cpp |
@@ -2366,8 +2366,11 @@ bool AXRenderObject::inheritsPresentationalRole() const |
return false; |
QualifiedName tagName = toElement(elementNode)->tagQName(); |
- if (tagName == ulTag || tagName == olTag || tagName == dlTag) |
- return (parent->roleValue() == NoneRole || parent->roleValue() == PresentationalRole); |
+ if (tagName != ulTag && tagName != olTag && tagName != dlTag) |
+ return false; |
+ |
+ if (parent->roleValue() == NoneRole || parent->roleValue() == PresentationalRole) |
+ return ariaRoleAttribute() == UnknownRole; |
return false; |
} |