2008-04-30 Beth Dakin <bdakin@apple.com>
authorbdakin@apple.com <bdakin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 1 May 2008 00:08:14 +0000 (00:08 +0000)
committerbdakin@apple.com <bdakin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 1 May 2008 00:08:14 +0000 (00:08 +0000)
commitcfe3f58b2e4c444d7906337bba507f8a23f84830
tree8dbe6809e445bcdd8bb0a4aff4071fd2c4d84ce8
parent22ccead0590cad0ec5fa84f3c4981ee6caea1c0b
2008-04-30  Beth Dakin  <bdakin@apple.com>

        Reviewed by Sam Weinig.

        This patch does three things:
        1. Adds support for the "img" ARIA role
        2. Switches over to a HashMap for converting ARIA role attributes
        to WebCore's AccessibilityRole type.
        3. Fixes a crash in the new ARIA code that I ran into while
        browsing with VoiceOver enabled.

        * page/AccessibilityObject.cpp:
        (WebCore::AccessibilityObject::headingLevel): This is the crash
        fix. Make sure the node's renderer is not null before looking up
        its corresponding AccessibilityObject in the cache.
        (WebCore::AccessibilityObject::accessibilityIsIgnored): Account for
        ARIA images.
        (WebCore::createARIARoleMap): Switch to HashMap, and add "img" to
        the Map.
        (WebCore::RoleEntry::): Same.
        (WebCore::ariaRoleToWebCoreRole): Same.
        (WebCore::AccessibilityObject::ariaRoleAttribute): Same.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@32751 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/page/AccessibilityObject.cpp