зеркало из https://github.com/mozilla/gecko-dev.git
bug 1162543 - make DocAccessibleChild::IDToAccessible correctly get the document r=davidb
DocAccessible::mAccessibleCache doesn't contain an entry for the document itself so we need to handle it separately. The document always has ID 0, so we can just check if that is the ID we are getting and if so just return the document.
This commit is contained in:
Родитель
cb581e0eff
Коммит
f68c2c3fe4
|
@ -64,6 +64,9 @@ SerializeTree(Accessible* aRoot, nsTArray<AccessibleData>& aTree)
|
|||
Accessible*
|
||||
DocAccessibleChild::IdToAccessible(const uint64_t& aID) const
|
||||
{
|
||||
if (!aID)
|
||||
return mDoc;
|
||||
|
||||
return mDoc->GetAccessibleByUniqueID(reinterpret_cast<void*>(aID));
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче