gecko-dev/layout
Boris Zbarsky 77e7a5575a 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
..
base merge mozilla-inbound to mozilal-central a=merge 2017-03-09 11:23:25 +01:00
build Bug 1299500 - Get rid of DeviceStorage API - part 10 - DeviceStorage, r=ehsan, r=billm 2017-03-08 20:15:45 +01:00
doc
forms Bug 1343037 part 6. Simplify the setup around the editor state's GetSelectionRange function. r=ehsan 2017-03-09 14:44:04 -05:00
generic Bug 1343552 part 1 - Invalidate the cached flow length when the next-in-flow/continuation changes. r=jfkthame 2017-03-09 13:18:26 +01:00
inspector Bug 1342144 - Remove version parameter from the type attribute of script elements. r=jmaher 2017-02-23 06:10:07 +09:00
ipc Remove references to the Direct3D9 compositor. (bug 1318558 part 1, r=mattwoodrow) 2017-03-08 00:17:36 -08:00
mathml Bug 775624 Part 22 - Remove NS_FRAME_COMPLETE. r=dholbert 2017-02-14 17:55:48 +08:00
media Bug 1332937 - Allow libcubeb and other media libs to set the moz crash reason. r=glandium 2017-02-09 14:27:29 +01:00
painting Backed out changeset 8bd27accc2a0 (bug 1340661) for mass-failing on Android at gfx/thebes/gfxPrefs.h:377. r=backout on a CLOSED TREE 2017-03-07 21:36:20 +01:00
printing Bug 1342994 Part 2 - Use UniquePtr to replace explicit new/delete and non-owing pointers in printing APIs. r=dholbert 2017-03-06 16:28:20 +08:00
reftests Bug 1341705. Reenable some stylo tests that involve urls with anchors. r=heycam 2017-03-08 22:29:57 -05:00
style merge mozilla-inbound to mozilal-central a=merge 2017-03-09 11:23:25 +01:00
svg Bug 1345052 - Remove EffectProperties::MightHaveNoneSVGMask. r=heycam 2017-03-07 17:01:31 +08:00
tables merge mozilla-inbound to mozilal-central a=merge 2017-03-09 11:23:25 +01:00
tools Bug 1345253 - Use element.firstChild.remove() instead of element.removeChild(element.firstChild), r=jaws. 2017-03-08 10:17:52 +01:00
xul Bug 1343078 part 7. Make placeholders a non-inheriting anon box. r=dbaron 2017-03-08 00:18:40 -05:00
moz.build