| Index: Source/modules/accessibility/AXRenderObject.cpp
|
| diff --git a/Source/modules/accessibility/AXRenderObject.cpp b/Source/modules/accessibility/AXRenderObject.cpp
|
| index 66d3e6796b5184777fd2cff57bb695dddfc471fc..4aa37ae856edac34c5f749696f425b4fa77fee58 100644
|
| --- a/Source/modules/accessibility/AXRenderObject.cpp
|
| +++ b/Source/modules/accessibility/AXRenderObject.cpp
|
| @@ -587,9 +587,11 @@ bool AXRenderObject::computeAccessibilityIsIgnored() const
|
| // NOTE: BRs always have text boxes now, so the text box check here can be removed
|
| if (m_renderer->isText()) {
|
| // static text beneath MenuItems and MenuButtons are just reported along with the menu item, so it's ignored on an individual level
|
| - AXObject* parent = parentObjectUnignored();
|
| - if (parent && (parent->ariaRoleAttribute() == MenuItemRole || parent->ariaRoleAttribute() == MenuButtonRole))
|
| - return true;
|
| + if (AXObject* parent = parentObjectUnignored()) {
|
| + AccessibilityRole role = parent->ariaRoleAttribute();
|
| + if (role == MenuItemRole || role == MenuItemRadioRole || role == MenuItemCheckBoxRole || role == MenuButtonRole)
|
| + return true;
|
| + }
|
| RenderText* renderText = toRenderText(m_renderer);
|
| if (m_renderer->isBR() || !renderText->firstTextBox())
|
| return true;
|
|
|