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

Unified Diff: third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp

Issue 1595063002: Adds AX role for abbr tag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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: third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp
diff --git a/third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp b/third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp
index 28784db833b75088371370d0c79c0790d8acb3dd..08f58880ed500c446aa4c17ab1a9176d3ad49b8f 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp
+++ b/third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp
@@ -430,6 +430,9 @@ AccessibilityRole AXNodeObject::nativeAccessibilityRoleIgnoringAria() const
if (isHTMLFormElement(*node()))
return FormRole;
+ if (node()->hasTagName(abbrTag))
+ return AbbrRole;
+
if (node()->hasTagName(articleTag))
return ArticleRole;

Powered by Google App Engine
This is Rietveld 408576698