mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 23:35:34 +00:00
Bug 1614079 - Pass accessibilityHitTest to content process. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D62311 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
113fa0f94e
commit
ff0625bca4
@ -443,7 +443,15 @@ static inline NSMutableArray* ConvertToNSArray(nsTArray<ProxyAccessible*>& aArra
|
||||
if (accWrap) {
|
||||
Accessible* child =
|
||||
accWrap->ChildAtPoint(geckoPoint.x, geckoPoint.y, Accessible::eDeepestChild);
|
||||
if (child) nativeChild = GetNativeFromGeckoAccessible(child);
|
||||
// If this is an outer doc, drill down further into proxies to find deepest remote child.
|
||||
if (OuterDocAccessible* docOwner = child->AsOuterDoc()) {
|
||||
if (ProxyAccessible* proxyDoc = docOwner->RemoteChildDoc()) {
|
||||
mozAccessible* nativeRemoteChild = GetNativeFromProxy(proxyDoc);
|
||||
return [nativeRemoteChild accessibilityHitTest:point];
|
||||
}
|
||||
} else if (child) {
|
||||
nativeChild = GetNativeFromGeckoAccessible(child);
|
||||
}
|
||||
} else if (proxy) {
|
||||
ProxyAccessible* child =
|
||||
proxy->ChildAtPoint(geckoPoint.x, geckoPoint.y, Accessible::eDeepestChild);
|
||||
|
Loading…
Reference in New Issue
Block a user