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

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

Issue 710663002: Adding role 'RubyRole' in blink to expose HTML Ruby tag. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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 58639de6792676352a73b738ad13d6ba8cc117b5..7c66e9084818b673f34531e6f2dc84b02977fa9e 100644
--- a/Source/core/accessibility/AXRenderObject.cpp
+++ b/Source/core/accessibility/AXRenderObject.cpp
@@ -385,6 +385,9 @@ AccessibilityRole AXRenderObject::determineAccessibilityRole()
if (isHTMLLabelElement(node))
return LabelRole;
+ if (isHTMLRubyElement(node))
+ return RubyRole;
+
if (isHTMLDivElement(node))
return DivRole;
@@ -734,6 +737,9 @@ bool AXRenderObject::computeAccessibilityIsIgnored() const
if (roleValue() == MeterRole)
return false;
+ if (roleValue() == RubyRole)
+ return false;
+
// if this element has aria attributes on it, it should not be ignored.
if (supportsARIAAttributes())
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