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

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

Issue 609793002: Add AX role ,'AXDescriptionList', for dl element(re-land). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: AX role for description list(rebased) 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
« no previous file with comments | « Source/core/accessibility/AXList.h ('k') | Source/core/accessibility/AXNodeObject.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/accessibility/AXList.cpp
diff --git a/Source/core/accessibility/AXList.cpp b/Source/core/accessibility/AXList.cpp
index 2f316edcd31842645a700befe7c4a33174798ffc..042c0c5ea511eb0753f766bc8dbbc54116582837 100644
--- a/Source/core/accessibility/AXList.cpp
+++ b/Source/core/accessibility/AXList.cpp
@@ -56,4 +56,20 @@ bool AXList::computeAccessibilityIsIgnored() const
return accessibilityIsIgnoredByDefault();
}
+bool AXList::isDescriptionList() const
+{
+ if (!m_renderer)
+ return false;
+
+ Node* node = m_renderer->node();
+ return node && node->hasTagName(dlTag);
+}
+
+AccessibilityRole AXList::roleValue() const
+{
+ if (isDescriptionList())
+ return DescriptionListRole;
+
+ return ListRole;
+}
} // namespace blink
« no previous file with comments | « Source/core/accessibility/AXList.h ('k') | Source/core/accessibility/AXNodeObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698