зеркало из https://github.com/mozilla/gecko-dev.git
bug 1210741
- make AccessibleWrap::get_accLocation work with proxied accessibles r=davidb
This commit is contained in:
Родитель
2233b14cfd
Коммит
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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче