Changeset 148539 in webkit


Ignore:
Timestamp:
Apr 16, 2013 1:22:17 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

dfn element should be exposed as AXGroup:AXDefinition
https://bugs.webkit.org/show_bug.cgi?id=108980

Patch by James Craig <james@cookiecrook.com> on 2013-04-16
Reviewed by Chris Fleizach.

Source/WebCore:

dfn element now exposed as AXGroup:AXDefinition. Updated existing tests.

  • accessibility/AccessibilityRenderObject.cpp:

(WebCore::AccessibilityRenderObject::computeAccessibilityIsIgnored):
(WebCore::AccessibilityRenderObject::determineAccessibilityRole):

LayoutTests:

dfn element now exposed as AXGroup:AXDefinition

  • platform/mac/accessibility/role-subrole-roledescription-expected.txt:
  • platform/mac/accessibility/role-subrole-roledescription.html:
Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r148532 r148539  
     12013-04-16  James Craig  <james@cookiecrook.com>
     2
     3        dfn element should be exposed as AXGroup:AXDefinition
     4        https://bugs.webkit.org/show_bug.cgi?id=108980
     5
     6        Reviewed by Chris Fleizach.
     7
     8        dfn element now exposed as AXGroup:AXDefinition
     9
     10        * platform/mac/accessibility/role-subrole-roledescription-expected.txt:
     11        * platform/mac/accessibility/role-subrole-roledescription.html:
     12
    1132013-04-16  Jochen Eisinger  <jochen@chromium.org>
    214
  • trunk/LayoutTests/platform/mac/accessibility/role-subrole-roledescription-expected.txt

    r148484 r148539  
    8181     
    8282PASS: dfn
    83       AXRole:
    84       AXSubrole:
    85       AXRoleDescription:
     83      AXRole: AXGroup
     84      AXSubrole: AXDefinition
     85      AXRoleDescription: definition
    8686     
    8787PASS: dl
  • trunk/LayoutTests/platform/mac/accessibility/role-subrole-roledescription.html

    r148484 r148539  
    2727<del data-role="" data-subrole="" data-roledescription="" class="ex">X</del>
    2828<!-- skipped <details/summary> http://webkit.org/b/108979 -->
    29 <!-- <dfn> http://webkit.org/b/108980 --><dfn data-role="" data-subrole="" data-roledescription="" class="ex">X</dfn>
     29<dfn data-role="AXGroup" data-subrole="AXDefinition" data-roledescription="definition" class="ex">X</dfn>
    3030<dl data-role="AXList" data-subrole="AXDescriptionList" data-alternatesubrole="AXDefinitionList" data-roledescription="description list" class="ex">
    3131    <dt data-role="AXGroup" data-subrole="AXTerm" data-roledescription="term" class="ex">X</dt>
  • trunk/Source/WebCore/ChangeLog

    r148537 r148539  
     12013-04-16  James Craig  <james@cookiecrook.com>
     2
     3        dfn element should be exposed as AXGroup:AXDefinition
     4        https://bugs.webkit.org/show_bug.cgi?id=108980
     5
     6        Reviewed by Chris Fleizach.
     7
     8        dfn element now exposed as AXGroup:AXDefinition. Updated existing tests.
     9
     10        * accessibility/AccessibilityRenderObject.cpp:
     11        (WebCore::AccessibilityRenderObject::computeAccessibilityIsIgnored):
     12        (WebCore::AccessibilityRenderObject::determineAccessibilityRole):
     13
    1142013-04-16  Anders Carlsson  <andersca@apple.com>
    215
  • trunk/Source/WebCore/accessibility/AccessibilityRenderObject.cpp

    r148033 r148539  
    13001300        return false;
    13011301#endif
     1302
     1303    // Other non-ignored host language elements
     1304    if (node && node->hasTagName(dfnTag))
     1305        return false;
    13021306   
    13031307    // By default, objects should be ignored so that the AX hierarchy is not
     
    25332537        return LabelRole;
    25342538
     2539    if (node && node->hasTagName(dfnTag))
     2540        return DefinitionRole;
     2541
    25352542    if (node && node->hasTagName(divTag))
    25362543        return DivRole;
Note: See TracChangeset for help on using the changeset viewer.