Index: Source/modules/accessibility/AXNodeObject.cpp |
diff --git a/Source/modules/accessibility/AXNodeObject.cpp b/Source/modules/accessibility/AXNodeObject.cpp |
index 269e81a68ac453d64ecf20362e459ff6bc229a88..b92f040541fae9bcbf99548e5453a3642f5673a0 100644 |
--- a/Source/modules/accessibility/AXNodeObject.cpp |
+++ b/Source/modules/accessibility/AXNodeObject.cpp |
@@ -182,11 +182,8 @@ AccessibilityRole AXNodeObject::determineAccessibilityRole() |
if (!node()) |
return UnknownRole; |
- m_ariaRole = determineAriaRoleAttribute(); |
- |
- AccessibilityRole ariaRole = ariaRoleAttribute(); |
- if (ariaRole != UnknownRole) |
- return ariaRole; |
+ if ((m_ariaRole = determineAriaRoleAttribute()) != UnknownRole) |
+ return m_ariaRole; |
if (node()->isLink()) |
return LinkRole; |