Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(258)

Unified Diff: Source/modules/accessibility/AXTableRow.cpp

Issue 756823004: Do the early return when role is different than UnknownRole (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/accessibility/AXTableRow.cpp
diff --git a/Source/modules/accessibility/AXTableRow.cpp b/Source/modules/accessibility/AXTableRow.cpp
index 32a4e7f9cb3cb0878b0157be18b679009bc9d12c..35922fdd898d8953d9f385f7e82f96ac4c15aaca 100644
--- a/Source/modules/accessibility/AXTableRow.cpp
+++ b/Source/modules/accessibility/AXTableRow.cpp
@@ -56,11 +56,8 @@ AccessibilityRole AXTableRow::determineAccessibilityRole()
if (!isTableRow())
return AXRenderObject::determineAccessibilityRole();
- m_ariaRole = determineAriaRoleAttribute();
-
- AccessibilityRole ariaRole = ariaRoleAttribute();
- if (ariaRole != UnknownRole)
- return ariaRole;
+ if ((m_ariaRole = determineAriaRoleAttribute()) != UnknownRole)
+ return m_ariaRole;
return RowRole;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698