Commit 0b44f2eb authored by cfleizach@apple.com's avatar cfleizach@apple.com
Browse files

AX: svg:image not accessible

https://bugs.webkit.org/show_bug.cgi?id=96341

Unreviewed.

Build fix for non-SVG ports.

* accessibility/AccessibilityRenderObject.cpp:
(WebCore::AccessibilityRenderObject::determineAccessibilityRole):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128405 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 9f41c35e
2012-09-12 Chris Fleizach <cfleizach@apple.com>
AX: svg:image not accessible
https://bugs.webkit.org/show_bug.cgi?id=96341
Unreviewed.
Build fix for non-SVG ports.
* accessibility/AccessibilityRenderObject.cpp:
(WebCore::AccessibilityRenderObject::determineAccessibilityRole):
2012-09-12 Yoshifumi Inoue <yosin@chromium.org>
 
New time input needs accessibility
......@@ -2356,7 +2356,7 @@ AccessibilityRole AccessibilityRenderObject::determineAccessibilityRole()
return LegendRole;
if (m_renderer->isText())
return StaticTextRole;
if ((cssBox && cssBox->isImage()) || m_renderer->isSVGImage()) {
if (cssBox && cssBox->isImage()) {
if (node && node->hasTagName(inputTag))
return ariaHasPopup() ? PopUpButtonRole : ButtonRole;
return ImageRole;
......@@ -2393,6 +2393,11 @@ AccessibilityRole AccessibilityRenderObject::determineAccessibilityRole()
if (headingLevel())
return HeadingRole;
#if ENABLE(SVG)
if (m_renderer->isSVGImage())
return ImageRole;
#endif
#if ENABLE(MATHML)
if (node && node->hasTagName(MathMLNames::mathTag))
return DocumentMathRole;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment