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; |
} |