mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1187413 - Check for ProxyAccessible in mozAccessible childAt r=tbsaunde
This commit is contained in:
parent
7239355f23
commit
907dd771b0
@ -355,10 +355,12 @@ ConvertToNSArray(nsTArray<ProxyAccessible*>& aArray)
|
|||||||
{
|
{
|
||||||
NS_OBJC_BEGIN_TRY_ABORT_BLOCK_NIL;
|
NS_OBJC_BEGIN_TRY_ABORT_BLOCK_NIL;
|
||||||
|
|
||||||
AccessibleWrap* accWrap = [self getGeckoAccessible];
|
if (AccessibleWrap* accWrap = [self getGeckoAccessible]) {
|
||||||
if (accWrap) {
|
Accessible* child = accWrap->GetChildAt(i);
|
||||||
Accessible* acc = accWrap->GetChildAt(i);
|
return child ? GetNativeFromGeckoAccessible(child) : nil;
|
||||||
return acc ? GetNativeFromGeckoAccessible(acc) : nil;
|
} else if (ProxyAccessible* proxy = [self getProxyAccessible]) {
|
||||||
|
ProxyAccessible* child = proxy->ChildAt(i);
|
||||||
|
return child ? GetNativeFromProxy(child) : nil;
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil;
|
return nil;
|
||||||
|
Loading…
Reference in New Issue
Block a user