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

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

Issue 713873002: Add the case for figure in title() and accessibilityDescription(). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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/core/accessibility/AXNodeObject.cpp
diff --git a/Source/core/accessibility/AXNodeObject.cpp b/Source/core/accessibility/AXNodeObject.cpp
index 917f64a04c8d02f4d37d2d1937f2474c6f17f19c..b73298082aba23c65c813830a7d94f9d99016d2e 100644
--- a/Source/core/accessibility/AXNodeObject.cpp
+++ b/Source/core/accessibility/AXNodeObject.cpp
@@ -1251,6 +1251,12 @@ String AXNodeObject::title() const
// SVGRoots should not use the text under itself as a title. That could include the text of objects like <text>.
case SVGRootRole:
return String();
+ case FigureRole:
+ for (AXObject* child = firstChild(); child; child = child->nextSibling()) {
+ Node* childNode = child->node();
+ if (childNode && childNode->hasTagName(figcaptionTag))
+ return child->textUnderElement();
dmazzoni 2014/11/10 17:16:10 I think this should be child->title() or child->ac
je_julie(Not used) 2014/11/11 15:38:51 Thanks for your idea. I took the 2nd suggestion be
+ }
default:
break;
}
« 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