bug 1170595 - always use IdToAccessible to convert ids to accessibles r=lsocks

This commit is contained in:
Trevor Saunders 2015-06-01 15:27:35 -04:00
parent e140eb2cf9
commit ea5b8a7bb2

View File

@ -225,7 +225,7 @@ DocAccessibleChild::RecvRelationByType(const uint64_t& aID,
const uint32_t& aType, const uint32_t& aType,
nsTArray<uint64_t>* aTargets) nsTArray<uint64_t>* aTargets)
{ {
Accessible* acc = mDoc->GetAccessibleByUniqueID((void*)aID); Accessible* acc = IdToAccessible(aID);
if (!acc) if (!acc)
return true; return true;
@ -258,7 +258,7 @@ bool
DocAccessibleChild::RecvRelations(const uint64_t& aID, DocAccessibleChild::RecvRelations(const uint64_t& aID,
nsTArray<RelationTargets>* aRelations) nsTArray<RelationTargets>* aRelations)
{ {
Accessible* acc = mDoc->GetAccessibleByUniqueID((void*)aID); Accessible* acc = IdToAccessible(aID);
if (!acc) if (!acc)
return true; return true;