Bug 171170

Summary: [ATK] ARIA treegrid role should be exposed as ATK_ROLE_TREE_TABLE; not ATK_ROLE_TABLE
Product: WebKit Reporter: Joanmarie Diggs <jdiggs>
Component: AccessibilityAssignee: Joanmarie Diggs <jdiggs>
Status: RESOLVED FIXED    
Severity: Normal CC: aboxhall, apinheiro, buildbot, cfleizach, commit-queue, dmazzoni, jcraig, samuel_white, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: Linux   
Attachments:
Description Flags
Patch none

Comment 1 Radar WebKit Bug Importer 2017-04-22 12:32:27 PDT
<rdar://problem/31775028>
Comment 2 Joanmarie Diggs 2017-04-29 11:45:01 PDT
Created attachment 308674 [details]
Patch
Comment 3 chris fleizach 2017-04-29 23:35:30 PDT
Comment on attachment 308674 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=308674&action=review

> Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:650
> +            case TreeGridRole:

will need to update this method too

- (AccessibilityObjectWrapper*)_accessibilityTableAncestor
{
    
    if (const AccessibilityObject* parent = AccessibilityObject::matchedParent(*m_object, false, [] (const AccessibilityObject& object) {
        return object.roleValue() == TableRole || object.roleValue() == GridRole;
    }))
        return parent->wrapper();
    return nil;
}
Comment 4 Joanmarie Diggs 2017-04-30 02:40:25 PDT
Comment on attachment 308674 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=308674&action=review

> Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:581
> +        return object.isTable();

Chris: Isn't the above the change you're asking me to make in your review? Otherwise, I'm suffering from grepfail.

>> Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:650
>> +            case TreeGridRole:
> 
> will need to update this method too
> 
> - (AccessibilityObjectWrapper*)_accessibilityTableAncestor
> {
>     
>     if (const AccessibilityObject* parent = AccessibilityObject::matchedParent(*m_object, false, [] (const AccessibilityObject& object) {
>         return object.roleValue() == TableRole || object.roleValue() == GridRole;
>     }))
>         return parent->wrapper();
>     return nil;
> }

Please see above (I think I already did).
Comment 5 chris fleizach 2017-04-30 09:28:00 PDT
Comment on attachment 308674 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=308674&action=review

>> Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:581
>> +        return object.isTable();
> 
> Chris: Isn't the above the change you're asking me to make in your review? Otherwise, I'm suffering from grepfail.

ah sorry!
Comment 6 WebKit Commit Bot 2017-04-30 11:12:04 PDT
Comment on attachment 308674 [details]
Patch

Clearing flags on attachment: 308674

Committed r215988: <http://trac.webkit.org/changeset/215988>
Comment 7 WebKit Commit Bot 2017-04-30 11:12:05 PDT
All reviewed patches have been landed.  Closing bug.