mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 1215657 - make AccessibleWrap::accHitTest() work with proxies r=davidb
This commit is contained in:
parent
1a735418f5
commit
5dbd682470
@ -1086,11 +1086,15 @@ AccessibleWrap::accHitTest(
|
||||
if (IsDefunct())
|
||||
return CO_E_OBJNOTCONNECTED;
|
||||
|
||||
// TODO make this work with proxies.
|
||||
if (IsProxy())
|
||||
return E_NOTIMPL;
|
||||
|
||||
Accessible* accessible = ChildAtPoint(xLeft, yTop, eDirectChild);
|
||||
Accessible* accessible = nullptr;
|
||||
if (IsProxy()) {
|
||||
ProxyAccessible* proxy = Proxy()->ChildAtPoint(xLeft, yTop, eDirectChild);
|
||||
if (proxy) {
|
||||
accessible = WrapperFor(proxy);
|
||||
}
|
||||
} else {
|
||||
accessible = ChildAtPoint(xLeft, yTop, eDirectChild);
|
||||
}
|
||||
|
||||
// if we got a child
|
||||
if (accessible) {
|
||||
|
Loading…
Reference in New Issue
Block a user