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

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 3a6c45b7e48aa3d03685fef75879044ec81cdb00..095df6f8c98b6840806e43749cdf6e1a0a111bd7 100644
--- a/Source/core/accessibility/AXRenderObject.cpp
+++ b/Source/core/accessibility/AXRenderObject.cpp
@@ -289,6 +289,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