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

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

Issue 533893004: Adds accessibility role for figcaption tag (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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/AXObject.h » ('j') | Source/core/accessibility/AXRenderObject.cpp » ('J')
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 e5010ac12a9fc8e7e9454aed3990a32448017339..6447c377132421db69c68ca492c06da2ddfbf1fb 100644
--- a/Source/core/accessibility/AXNodeObject.cpp
+++ b/Source/core/accessibility/AXNodeObject.cpp
@@ -221,6 +221,8 @@ AccessibilityRole AXNodeObject::determineAccessibilityRole()
return ParagraphRole;
if (isHTMLLabelElement(*node()))
return LabelRole;
+ if (node()->isElementNode() && node()->hasTagName(figcaptionTag))
+ return FigcaptionRole;
if (node()->isElementNode() && node()->hasTagName(figureTag))
return FigureRole;
if (node()->isElementNode() && toElement(node())->isFocusable())
« no previous file with comments | « no previous file | Source/core/accessibility/AXObject.h » ('j') | Source/core/accessibility/AXRenderObject.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698