bug 1210741 - make AccessibleWrap::get_accLocation work with proxied accessibles r=davidb

This commit is contained in:
Trevor Saunders 2015-10-02 06:33:44 -04:00
parent 78b22d1913
commit cf85b4a812

View File

@ -952,11 +952,13 @@ AccessibleWrap::accLocation(
if (xpAccessible->IsDefunct())
return CO_E_OBJNOTCONNECTED;
// TODO make this work with proxies.
if (xpAccessible->IsProxy())
return E_NOTIMPL;
nsIntRect rect;
if (xpAccessible->IsProxy()) {
rect = xpAccessible->Proxy()->Bounds();
} else {
rect = xpAccessible->Bounds();
}
nsIntRect rect = xpAccessible->Bounds();
*pxLeft = rect.x;
*pyTop = rect.y;
*pcxWidth = rect.width;