Changeset 56930 in webkit


Ignore:
Timestamp:
Apr 1, 2010 12:46:33 PM (14 years ago)
Author:
Chris Fleizach
Message:

Bug 36977 - aria-label doesn't work on image map area
https://bugs.webkit.org/show_bug.cgi?id=36977

Reviewed by Beth Dakin.

WebCore:

Test: platform/mac/accessibility/area-with-aria-label.html

  • accessibility/AccessibilityImageMapLink.cpp:

(WebCore::AccessibilityImageMapLink::accessibilityDescription):

LayoutTests:

  • platform/mac/accessibility/area-with-aria-label-expected.txt: Added.
  • platform/mac/accessibility/area-with-aria-label.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r56928 r56930  
     12010-04-01  Chris Fleizach  <cfleizach@apple.com>
     2
     3        Reviewed by Beth Dakin.
     4
     5        Bug 36977 - aria-label doesn't work on image map area
     6        https://bugs.webkit.org/show_bug.cgi?id=36977
     7
     8        * platform/mac/accessibility/area-with-aria-label-expected.txt: Added.
     9        * platform/mac/accessibility/area-with-aria-label.html: Added.
     10
    1112010-04-01  Julien Chaffraix  <jchaffraix@webkit.org>
    212
  • trunk/WebCore/ChangeLog

    r56924 r56930  
     12010-04-01  Chris Fleizach  <cfleizach@apple.com>
     2
     3        Reviewed by Beth Dakin.
     4
     5        Bug 36977 - aria-label doesn't work on image map area
     6        https://bugs.webkit.org/show_bug.cgi?id=36977
     7
     8        Test: platform/mac/accessibility/area-with-aria-label.html
     9
     10        * accessibility/AccessibilityImageMapLink.cpp:
     11        (WebCore::AccessibilityImageMapLink::accessibilityDescription):
     12
    1132010-04-01  Simon Fraser  <simon.fraser@apple.com>
    214
  • trunk/WebCore/accessibility/AccessibilityImageMapLink.cpp

    r51195 r56930  
    104104        return String();
    105105
     106    const AtomicString& ariaLabel = m_areaElement->getAttribute(aria_labelAttr);
     107    if (!ariaLabel.isEmpty())
     108        return ariaLabel;
    106109    const AtomicString& alt = m_areaElement->getAttribute(altAttr);
    107110    if (!alt.isEmpty())
Note: See TracChangeset for help on using the changeset viewer.