gecko-dev/accessible/ipc
James Teh b65ec03904 Bug 1431264 part 3: AccessibleHandler: If a client wants to query all relations, fetch as much info as possible in a single cross-process call. r=MarcoZ
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
2018-02-02 09:38:51 +10:00
..
other Bug 1394734 - Replace CONFIG['GNU_C*'] by CONFIG['CC_TYPE'] r=glandium 2017-12-07 22:09:15 +01:00
win Bug 1431264 part 3: AccessibleHandler: If a client wants to query all relations, fetch as much info as possible in a single cross-process call. r=MarcoZ 2018-02-02 09:38:51 +10:00
DocAccessibleChildBase.cpp Bug 1402951 - no show events for content on document load complete, r=aklotz, yzen 2017-10-03 10:58:27 -04:00
DocAccessibleChildBase.h Bug 1402951 - no show events for content on document load complete, r=aklotz, yzen 2017-10-03 10:58:27 -04:00
DocAccessibleParent.cpp Bug 1423541: Use BaseRect access methods instead of member variables in accessible/ r=surkov 2018-01-12 12:07:29 -05:00
DocAccessibleParent.h Bug 1415470 - a11y: Fix VS2017 initializer list order warnings. r=yzen 2017-11-06 23:54:53 -08:00
IPCTypes.h Bug 1390652: Part 1 - Send parent COM proxies to content as IDispatch instead of IAccessible to match the outparam type of IAccessible::get_accParent; r=yzen 2017-08-16 10:56:00 -06:00
moz.build Bug 1394734 - Replace CONFIG['GNU_C*'] by CONFIG['CC_TYPE'] r=glandium 2017-12-07 22:09:15 +01:00
ProxyAccessibleBase.cpp Bug 1326084 - Unbind accessible child doc before replacing with new one. r=trevor 2017-04-07 13:26:45 -07:00
ProxyAccessibleBase.h bug 1339128 - reference parent proxy by id r=eeejay 2017-02-13 14:52:07 -05:00
ProxyAccessibleShared.h Bug 1400460 - Rename nsIAtom as nsAtom. r=hiro. 2017-10-03 09:05:19 +11:00