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

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

Issue 1088853003: Implements determineAccessibilityRole() instead of roleValue() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 months 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 | « Source/modules/accessibility/AXListBox.h ('k') | Source/modules/accessibility/AXListBoxOption.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/accessibility/AXListBox.cpp
diff --git a/Source/modules/accessibility/AXListBox.cpp b/Source/modules/accessibility/AXListBox.cpp
index 615f58677ab7af62afa945ad3dcc3a46e579e5fa..6c13c63b5f82f37e59a184b14eba5d1154540833 100644
--- a/Source/modules/accessibility/AXListBox.cpp
+++ b/Source/modules/accessibility/AXListBox.cpp
@@ -55,11 +55,11 @@ PassRefPtr<AXListBox> AXListBox::create(LayoutObject* layoutObject, AXObjectCach
return adoptRef(new AXListBox(layoutObject, axObjectCache));
}
-AccessibilityRole AXListBox::roleValue() const
+AccessibilityRole AXListBox::determineAccessibilityRole()
{
- AccessibilityRole ariaRole = ariaRoleAttribute();
- if (ariaRole != UnknownRole)
- return ariaRole;
+ if ((m_ariaRole = determineAriaRoleAttribute()) != UnknownRole)
+ return m_ariaRole;
+
return ListBoxRole;
}
« no previous file with comments | « Source/modules/accessibility/AXListBox.h ('k') | Source/modules/accessibility/AXListBoxOption.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698