Index: Source/core/accessibility/AXRenderObject.cpp |
diff --git a/Source/core/accessibility/AXRenderObject.cpp b/Source/core/accessibility/AXRenderObject.cpp |
index e747c56d2953741908cd7aa966acd576f6d55b27..c7894c45485ba3f6c7edd1b3cd770dc80420e0f6 100644 |
--- a/Source/core/accessibility/AXRenderObject.cpp |
+++ b/Source/core/accessibility/AXRenderObject.cpp |
@@ -289,6 +289,12 @@ AccessibilityRole AXRenderObject::determineAccessibilityRole() |
return ImageRole; |
} |
+ // This is for the case where the fallback content kicks in. |
+ // The normal case should be handled in the case above |
+ if (node && node->hasTagName(HTMLNames::imgTag)) { |
+ return ImageRole; |
+ } |
esprehn
2014/09/05 00:47:50
no braces
rhogan
2014/09/08 19:52:41
Done
|
+ |
// Note: if JavaScript is disabled, the renderer won't be a RenderHTMLCanvas. |
if (isHTMLCanvasElement(node) && m_renderer->isCanvas()) |
return CanvasRole; |