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

Unified Diff: Source/core/accessibility/AXNodeObject.cpp

Issue 594843004: Summary tag is exposed with wrong IA2 Role (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Incorporating comments Created 6 years, 3 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 | « no previous file | Source/core/accessibility/AXRenderObject.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/accessibility/AXNodeObject.cpp
diff --git a/Source/core/accessibility/AXNodeObject.cpp b/Source/core/accessibility/AXNodeObject.cpp
index f560903f6e4259d094c51aeb59bf44cfd9f128b8..34c1230cd4d494dc4864058f43f7edffccbb22fe 100644
--- a/Source/core/accessibility/AXNodeObject.cpp
+++ b/Source/core/accessibility/AXNodeObject.cpp
@@ -193,6 +193,12 @@ AccessibilityRole AXNodeObject::determineAccessibilityRole()
return buttonRoleType();
if (isHTMLDetailsElement(*node()))
return DetailsRole;
+ if (isHTMLSummaryElement(*node())) {
+ if (node()->parentNode() && isHTMLDetailsElement(node()->parentNode()))
+ return DisclosureTriangleRole;
+ return UnknownRole;
+ }
+
if (isHTMLInputElement(*node())) {
HTMLInputElement& input = toHTMLInputElement(*node());
const AtomicString& type = input.type();
« no previous file with comments | « no previous file | Source/core/accessibility/AXRenderObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698