| Index: Source/core/accessibility/AXRenderObject.cpp
|
| diff --git a/Source/core/accessibility/AXRenderObject.cpp b/Source/core/accessibility/AXRenderObject.cpp
|
| index a3106b22c7cba331614e7dc8e9cbf8efd4923b1f..91f691f745c6515f65f72c29547e31e6727520a4 100644
|
| --- a/Source/core/accessibility/AXRenderObject.cpp
|
| +++ b/Source/core/accessibility/AXRenderObject.cpp
|
| @@ -388,6 +388,9 @@ AccessibilityRole AXRenderObject::determineAccessibilityRole()
|
| if (isEmbeddedObject())
|
| return EmbeddedObjectRole;
|
|
|
| + if (node && node->hasTagName(figureTag))
|
| + return FigureRole;
|
| +
|
| // There should only be one banner/contentInfo per page. If header/footer are being used within an article or section
|
| // then it should not be exposed as whole page's banner/contentInfo
|
| if (node && node->hasTagName(headerTag) && !isDescendantOfElementType(articleTag) && !isDescendantOfElementType(sectionTag))
|
| @@ -675,6 +678,9 @@ bool AXRenderObject::computeAccessibilityIsIgnored() const
|
| if (roleValue() == DialogRole)
|
| return false;
|
|
|
| + if (roleValue() == FigureRole)
|
| + return false;
|
| +
|
| // if this element has aria attributes on it, it should not be ignored.
|
| if (supportsARIAAttributes())
|
| return false;
|
|
|