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

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

Issue 654303004: Add AX role for blockquote tag (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « Source/core/accessibility/AXObject.h ('k') | Source/web/AssertMatchingEnums.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/accessibility/AXRenderObject.cpp
diff --git a/Source/core/accessibility/AXRenderObject.cpp b/Source/core/accessibility/AXRenderObject.cpp
index 39bcf992bc8d194c679355cf346dd3016741916a..b06df9c833ee3dd237e9db8e12d370fd3be7ebc8 100644
--- a/Source/core/accessibility/AXRenderObject.cpp
+++ b/Source/core/accessibility/AXRenderObject.cpp
@@ -388,6 +388,9 @@ AccessibilityRole AXRenderObject::determineAccessibilityRole()
if (node && node->hasTagName(articleTag))
return ArticleRole;
+ if (node && node->hasTagName(blockquoteTag))
+ return BlockquoteRole;
+
if (node && node->hasTagName(mainTag))
return MainRole;
@@ -701,6 +704,9 @@ bool AXRenderObject::computeAccessibilityIsIgnored() const
if (roleValue() == ListItemRole)
return false;
+ if (roleValue() == BlockquoteRole)
+ return false;
+
if (roleValue() == DialogRole)
return false;
« no previous file with comments | « Source/core/accessibility/AXObject.h ('k') | Source/web/AssertMatchingEnums.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698