зеркало из https://github.com/mozilla/gecko-dev.git
bug 1074854 - properly mark proxies in atkobject::accWrap r=davidb
When the accWrap field points at a proxy its value must be the pointer or'd with IS_PROXY, but we incorrectly stored the plain pointer.
This commit is contained in:
Родитель
97a4468c62
Коммит
01192e24c8
|
@ -1008,7 +1008,8 @@ a11y::ProxyCreated(ProxyAccessible* aProxy)
|
|||
if (!obj)
|
||||
return;
|
||||
|
||||
atk_object_initialize(obj, aProxy);
|
||||
uintptr_t inner = reinterpret_cast<uintptr_t>(aProxy) | IS_PROXY;
|
||||
atk_object_initialize(obj, reinterpret_cast<gpointer>(inner));
|
||||
obj->role = ATK_ROLE_INVALID;
|
||||
obj->layer = ATK_LAYER_INVALID;
|
||||
aProxy->SetWrapper(reinterpret_cast<uintptr_t>(obj) | IS_PROXY);
|
||||
|
|
Загрузка…
Ссылка в новой задаче