Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / accessibility / AXList.cpp
index 2f316ed..042c0c5 100644 (file)
@@ -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