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

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 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;

Powered by Google App Engine
This is Rietveld 408576698