AX: svg:image not accessible
authorcfleizach@apple.com <cfleizach@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 13 Sep 2012 05:54:31 +0000 (05:54 +0000)
committercfleizach@apple.com <cfleizach@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 13 Sep 2012 05:54:31 +0000 (05:54 +0000)
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: https://svn.webkit.org/repository/webkit/trunk@128405 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/accessibility/AccessibilityRenderObject.cpp

index 232cce3..8778b35 100644 (file)
@@ -1,3 +1,15 @@
+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
index 16d79c2..8c1b021 100644 (file)
@@ -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;