mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 17:23:59 +00:00
b65ec03904
If a client calls IAccessible2::nRelations, it's likely that it will next call IAccessible2::relations to query each relation. Furthermore, it's likely the client will call relationType and nTargets on each relation. Therefore, fetch all of this info when nRelations is called. The number of relations is immediately returned to the client. The rest of the info is cached and returned to the client when the appropriate methods are called. The info is only cached for one call; i.e. after the client calls relations once, the cache is dropped. This makes memory management simpler and lowers the risk of cache invalidation problems. MozReview-Commit-ID: IBoJbu42osG --HG-- extra : rebase_source : d1af83f4c6c0e7762299e9e3da95a67217157200 |
||
---|---|---|
.. | ||
aom | ||
atk | ||
base | ||
generic | ||
html | ||
interfaces | ||
ipc | ||
jsat | ||
mac | ||
other | ||
tests | ||
windows | ||
xpcom | ||
xul | ||
.eslintrc.js | ||
moz.build |