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

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

Issue 481753002: Use Shadow DOM to display fallback content for images (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated Created 6 years, 3 months 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
Index: Source/core/accessibility/AXRenderObject.cpp
diff --git a/Source/core/accessibility/AXRenderObject.cpp b/Source/core/accessibility/AXRenderObject.cpp
index 7e91919e22e80b4a5b118990c8aa9b5ea3d54b48..1dcda41dcd15cc8476be780e4494526bf0ffd9f9 100644
--- a/Source/core/accessibility/AXRenderObject.cpp
+++ b/Source/core/accessibility/AXRenderObject.cpp
@@ -297,6 +297,11 @@ 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;
+
// Note: if JavaScript is disabled, the renderer won't be a RenderHTMLCanvas.
if (isHTMLCanvasElement(node) && m_renderer->isCanvas())
return CanvasRole;

Powered by Google App Engine
This is Rietveld 408576698