gecko-dev/accessible
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
..
aom Bug 1419131 - adding a11y force disabled pref observer when accessibility service is being created. r=surkov 2017-11-29 00:01:18 -05:00
atk Bug 1278282 - Remove the 'MOZ_WIDGET_GTK == 2' defines r=karlt,lsalzman 2018-01-10 08:52:04 +01:00
base Bug 1434686 part 3. Use IgnoreErrors() outside of dom/. r=mystor 2018-02-01 14:21:14 -05:00
generic Bug 1434819 part 9. Remove nsIDOMNodeFilter. r=qdot 2018-02-01 14:26:13 -05:00
html Bug 1423541: Use BaseRect access methods instead of member variables in accessible/ r=surkov 2018-01-12 12:07:29 -05:00
interfaces Bug 1427512 - Part 27: Remove nsIDOMCSSPrimitiveValue. r=xidorn,bz 2018-01-11 16:17:57 +08:00
ipc 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
jsat Bug 1339461 - script-generated patch to convert foo.indexOf(...) == -1 to foo.includes(), r=Mossop. 2018-02-01 20:45:22 +01:00
mac Bug 1400460 - Rename nsIAtom as nsAtom. r=hiro. 2017-10-03 09:05:19 +11:00
other Bug 1394734 - Replace CONFIG['GNU_C*'] by CONFIG['CC_TYPE'] r=glandium 2017-12-07 22:09:15 +01:00
tests Bug 1339461 - script-generated patch to convert foo.indexOf(...) == -1 to foo.includes(), r=Mossop. 2018-02-01 20:45:22 +01:00
windows Bug 1428610 part 7. Make the nsICSSDeclaration length API nicer. r=emilio 2018-01-30 14:48:27 -05:00
xpcom Bug 1423541: Use BaseRect access methods instead of member variables in accessible/ r=surkov 2018-01-12 12:07:29 -05:00
xul Bug 1423541: Use BaseRect access methods instead of member variables in accessible/ r=surkov 2018-01-12 12:07:29 -05:00
.eslintrc.js Bug 1425244 - Enable ESLint rule object-shorthand for accessible/. r=surkov 2017-12-11 13:08:14 +00:00
moz.build Bug 1329977 - creating doc accessibles for existing content documents. r=surkov 2017-10-31 09:48:07 -04:00