mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 1210741 - make AccessibleWrap::get_accLocation work with proxied accessibles r=davidb
This commit is contained in:
parent
78b22d1913
commit
cf85b4a812
@ -952,11 +952,13 @@ AccessibleWrap::accLocation(
|
|||||||
if (xpAccessible->IsDefunct())
|
if (xpAccessible->IsDefunct())
|
||||||
return CO_E_OBJNOTCONNECTED;
|
return CO_E_OBJNOTCONNECTED;
|
||||||
|
|
||||||
// TODO make this work with proxies.
|
nsIntRect rect;
|
||||||
if (xpAccessible->IsProxy())
|
if (xpAccessible->IsProxy()) {
|
||||||
return E_NOTIMPL;
|
rect = xpAccessible->Proxy()->Bounds();
|
||||||
|
} else {
|
||||||
|
rect = xpAccessible->Bounds();
|
||||||
|
}
|
||||||
|
|
||||||
nsIntRect rect = xpAccessible->Bounds();
|
|
||||||
*pxLeft = rect.x;
|
*pxLeft = rect.x;
|
||||||
*pyTop = rect.y;
|
*pyTop = rect.y;
|
||||||
*pcxWidth = rect.width;
|
*pcxWidth = rect.width;
|
||||||
|
Loading…
Reference in New Issue
Block a user