diff options
Diffstat (limited to 'WebCore/accessibility/AccessibilityList.cpp')
| -rw-r--r-- | WebCore/accessibility/AccessibilityList.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/WebCore/accessibility/AccessibilityList.cpp b/WebCore/accessibility/AccessibilityList.cpp index 95239b0..feceee5 100644 --- a/WebCore/accessibility/AccessibilityList.cpp +++ b/WebCore/accessibility/AccessibilityList.cpp @@ -55,6 +55,10 @@ PassRefPtr<AccessibilityList> AccessibilityList::create(RenderObject* renderer) bool AccessibilityList::accessibilityIsIgnored() const { + // Is the platform interested in the object? + if (accessibilityPlatformIncludesObject() == IgnoreObject) + return true; + // lists don't appear on tiger/leopard on the mac #if ACCESSIBILITY_LISTS return false; @@ -83,7 +87,11 @@ bool AccessibilityList::isOrderedList() const { if (!m_renderer) return false; - + + // ARIA says a directory is like a static table of contents, which sounds like an ordered list. + if (ariaRoleAttribute() == DirectoryRole) + return true; + Node* node = m_renderer->node(); return node && node->hasTagName(olTag); } |
