mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
bug 1210741
- make AccessibleWrap::get_accLocation work with proxied accessibles r=davidb
This commit is contained in:
parent
2233b14cfd
commit
fdc2c57a4a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user