gecko-dev/accessible
Boris Zbarsky 5ae7da9d14 Bug 1343037 part 6. Simplify the setup around the editor state's GetSelectionRange function. r=ehsan
Really, there are only two cases we need to worry about.  Either
IsSelectionCached(), and then our SelectionProperties has the data we want, or
not and then we have a non-null mSelCon which has the data we want.

Since we are now using cached selection state a lot more (instead of
initializing the editor whenever someone asks for selection state), we need to
actually update it more correctly when .value is set.

And since we now update the cached selection state for the case when .value has
been set (to point to the end of the text), we need to change
HTMLInputElement::HasCachedSelection to return false for that case.  Otherwise
we will always do eager editor init on value set.  We handle that by not doing
eager init if the cached selection is collapsed.

The web platform test changes test the "update on .value set" behavior.  They
fail without this patch, pass with it.

MozReview-Commit-ID: DDU8U4MGb23
2017-03-09 14:44:04 -05:00
..
aom Bug 1331434 - Part 4: Return early after throwing in AccessibleNode::Get, r=surkov 2017-03-07 19:06:48 -05:00
atk Bug 1344615: Remove nsXPCOMStrings.{h,cpp} r=bsmedberg 2017-03-06 17:52:54 +13:00
base Bug 1340771 part 2 - Introduce a WeakFrame class for heap allocated weak frame pointers, stored in a hashtable for fast lookup. r=tn 2017-03-01 18:03:14 +01:00
generic Bug 1321384 - add debuggin assert for Accessible::RemoveChild, r=yzen 2017-03-09 14:55:54 -05:00
html Bug 752823 - Turn nsHTMLLiAccessible::mBullet into raw pointer. r=surkov 2017-01-02 20:41:50 +01:00
interfaces Bug 1335527: Fix missing entries for .tlb files generated by midl in a11y code; r=mshal 2017-02-14 16:32:18 -07:00
ipc bug 1332690 - don't try and bind child docs to a shutdown DocAccessibleParent r=yzen 2017-03-05 23:12:13 -05:00
jsat Bug 1337467 - Convert observers to bundle events; r=rbarker r=sebastian 2017-03-07 12:34:04 -05:00
mac bug 1338755 - make RemoteChildDoc() return a DocAccessibleParent* r=yzen 2017-02-17 09:06:26 -05:00
other Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
tests Bug 1343037 part 6. Simplify the setup around the editor state's GetSelectionRange function. r=ehsan 2017-03-09 14:44:04 -05:00
windows Bug 1339779 - bail early if ipcDoc is not yet created. r=tbsaunde 2017-02-25 17:18:30 -05:00
xpcom Bug 1336637 - Support relation methods in xpc on windows. r=tbsaunde 2017-02-10 17:27:33 -08:00
xul Bug 1321384 - add debuggin assert for Accessible::RemoveChild, r=yzen 2017-03-09 14:55:54 -05:00
.eslintrc.js Bug 1251003 - Change .eslintrc files to .eslintrc.js to avoid obsolete config file format. r=mossop 2016-10-18 08:38:10 +01:00
moz.build Bug 1328356 - add BUG_COMPONENT to accessible/* files. r=davidb 2017-01-06 11:33:44 -05:00