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

Unified Diff: Source/modules/accessibility/AXSlider.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/AXSlider.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/accessibility/AXSlider.cpp
diff --git a/Source/modules/accessibility/AXSlider.cpp b/Source/modules/accessibility/AXSlider.cpp
index e1791afaf054d309225ac1cac3a27c6af0b0cd3a..93e204d5dead56eb6851f352f56db426aa93c36a 100644
--- a/Source/modules/accessibility/AXSlider.cpp
+++ b/Source/modules/accessibility/AXSlider.cpp
@@ -49,11 +49,11 @@ PassRefPtr<AXSlider> AXSlider::create(LayoutObject* layoutObject, AXObjectCacheI
return adoptRef(new AXSlider(layoutObject, axObjectCache));
}
-AccessibilityRole AXSlider::roleValue() const
+AccessibilityRole AXSlider::determineAccessibilityRole()
{
- AccessibilityRole ariaRole = ariaRoleAttribute();
- if (ariaRole != UnknownRole)
- return ariaRole;
+ if ((m_ariaRole = determineAriaRoleAttribute()) != UnknownRole)
+ return m_ariaRole;
+
return SliderRole;
}
« no previous file with comments | « Source/modules/accessibility/AXSlider.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698