gecko-dev/layout/forms
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
..
crashtests Reenable several crashtests that no longer crash or leak or time out with stylo. No bug, r=bzbarsky 2017-02-24 15:22:37 -05:00
test Bug 1337392 - Update test cases to match new cursor behavior. r=smaug 2017-03-08 16:41:42 +01:00
moz.build Bug 1318805 - Move the code for the Web Painting module to layout/painting; r=mattwoodrow 2016-11-21 20:01:15 -05:00
nsButtonFrameRenderer.cpp Bug 140562 - Part 2: Remove the 2px extra padding on buttons for a prospective -moz-focus-inner ring, and just size that ring the same as the content frame (inflated by its CSS padding). r=dbaron 2016-12-02 01:11:48 -05:00
nsButtonFrameRenderer.h Bug 140562 - Part 2: Remove the 2px extra padding on buttons for a prospective -moz-focus-inner ring, and just size that ring the same as the content frame (inflated by its CSS padding). r=dbaron 2016-12-02 01:11:48 -05:00
nsColorControlFrame.cpp Bug 1331322 - Allow tagging of pseudo-implementing native anonymous content with the pseudo type at creation time, and eliminate explicit style contexts in nsIAnonymousContentCreator::ContentInfo. r=bholley 2017-01-13 03:21:11 +00:00
nsColorControlFrame.h
nsComboboxControlFrame.cpp Bug 1345362 part 4. Rename ResolveAnonymousBoxStyle to ResolveInheritingAnonymousBoxStyle. r=heycam 2017-03-08 23:50:28 -05:00
nsComboboxControlFrame.h Bug 1334358 - Stop using CreateAnonymousFrames for combo box creation. r=bz 2017-01-27 16:13:33 -08:00
nsDateTimeControlFrame.cpp Bug 775624 Part 22 - Remove NS_FRAME_COMPLETE. r=dholbert 2017-02-14 17:55:48 +08:00
nsDateTimeControlFrame.h 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
nsFieldSetFrame.cpp Bug 775624 Part 22 - Remove NS_FRAME_COMPLETE. r=dholbert 2017-02-14 17:55:48 +08:00
nsFieldSetFrame.h Bug 1330962 part 4 - Cleanup some #includes and make nsLegendFrame 'final'. r=dholbert 2017-01-28 02:34:14 +01:00
nsFileControlFrame.cpp Bug 1340120 - Directory Upload API should work correctly with a folder is dropped, r=smaug 2017-02-16 18:23:33 +01:00
nsFileControlFrame.h 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
nsFormControlFrame.cpp Bug 775624 Part 22 - Remove NS_FRAME_COMPLETE. r=dholbert 2017-02-14 17:55:48 +08:00
nsFormControlFrame.h Bug 605985 part 1 - Remove most default styling for checkbox and radio buttons and make the instrinsic size be zero for -moz-appearance:none checkbox/radios. r=dholbert 2017-02-09 21:22:40 +01:00
nsGfxButtonControlFrame.cpp Bug 1334247 - Remove unused nsGfxButtonControlFrame::CreateFrameFor. r=bz 2017-01-26 15:33:05 -08:00
nsGfxButtonControlFrame.h Bug 1334247 - Remove unused nsGfxButtonControlFrame::CreateFrameFor. r=bz 2017-01-26 15:33:05 -08:00
nsGfxCheckboxControlFrame.cpp Backed out changeset 6114d21c87ca (bug 1320809) for android reftest failures a=backout 2016-11-29 14:04:53 -08:00
nsGfxCheckboxControlFrame.h Backed out changeset 6114d21c87ca (bug 1320809) for android reftest failures a=backout 2016-11-29 14:04:53 -08:00
nsGfxRadioControlFrame.cpp Bug 418833 - Move default checkbox/radio drawing to images. Allow overriding checkbox/radio styling. r=tnikkel 2016-11-03 16:54:49 -04:00
nsGfxRadioControlFrame.h Bug 418833 - Move default checkbox/radio drawing to images. Allow overriding checkbox/radio styling. r=tnikkel 2016-11-03 16:54:49 -04:00
nsHTMLButtonControlFrame.cpp Bug 775624 Part 22 - Remove NS_FRAME_COMPLETE. r=dholbert 2017-02-14 17:55:48 +08:00
nsHTMLButtonControlFrame.h Bug 1330962 part 2 - Add baseline methods to nsHTMLButtonControlFrame. r=dholbert 2017-01-28 02:34:13 +01:00
nsIComboboxControlFrame.h Bug 1194027, add a flag to select elements to indicate if the parent process has the popup open, r=mrbkap 2016-08-03 07:45:46 -04:00
nsIFormControlFrame.h
nsIListControlFrame.h
nsISelectControlFrame.h
nsITextControlFrame.h Bug 1342197 part 4. Move GetSelectionRange from nsTextControlFrame to the editor state. r=ehsan 2017-02-28 12:41:37 -05:00
nsImageControlFrame.cpp Bug 1312173 - Convert NS_STYLE_USER_INPUT_* to an enum class; r=manishearth,xidorn 2016-10-23 00:08:18 +02:00
nsLegendFrame.cpp Bug 1322191 part 2b - Replace "NS_BLOCK_FLOAT_MGR | NS_BLOCK_MARGIN_ROOT" with NS_BLOCK_FORMATTING_CONTEXT_STATE_BITS. r=dholbert 2016-12-23 19:11:04 +01:00
nsLegendFrame.h Bug 1330962 part 4 - Cleanup some #includes and make nsLegendFrame 'final'. r=dholbert 2017-01-28 02:34:14 +01:00
nsListControlFrame.cpp Bug 1340771 part 1 - Rename nsWeakFrame to AutoWeakFrame (automated change). r=tn 2017-03-01 18:03:14 +01:00
nsListControlFrame.h Bug 1327129 - Make key events act on the first non-disabled <option> (if any) when no <option> is selected (i.e. selectedIndex=-1). r=smaug 2017-01-08 21:26:59 +01:00
nsMeterFrame.cpp Bug 775624 Part 22 - Remove NS_FRAME_COMPLETE. r=dholbert 2017-02-14 17:55:48 +08:00
nsMeterFrame.h Bug 1300369 part 4 - Refactor all ComputeAutoSize methods to take the full ComputeSizeFlags instead of just a "bool aShrinkWrap" for the eShrinkWrap flag (idempotent patch). r=dholbert 2016-11-05 02:57:06 +01:00
nsNumberControlFrame.cpp Bug 775624 Part 22 - Remove NS_FRAME_COMPLETE. r=dholbert 2017-02-14 17:55:48 +08:00
nsNumberControlFrame.h 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
nsProgressFrame.cpp Bug 775624 Part 22 - Remove NS_FRAME_COMPLETE. r=dholbert 2017-02-14 17:55:48 +08:00
nsProgressFrame.h Bug 1279354 part 2 - Make the nsProgressFrame code a bit more idiomatic by processing its actual child frames. r=dholbert 2016-11-28 23:00:20 +01:00
nsRangeFrame.cpp Bug 775624 Part 22 - Remove NS_FRAME_COMPLETE. r=dholbert 2017-02-14 17:55:48 +08:00
nsRangeFrame.h Bug 1300369 part 4 - Refactor all ComputeAutoSize methods to take the full ComputeSizeFlags instead of just a "bool aShrinkWrap" for the eShrinkWrap flag (idempotent patch). r=dholbert 2016-11-05 02:57:06 +01:00
nsSelectsAreaFrame.cpp Bug 1301630 - Remove nsBlockFrame::SetFlags(). r=bz 2016-09-09 15:26:57 +08:00
nsSelectsAreaFrame.h Bug 1277129 Part 7b - Rename various ReflowState variables to ReflowInput. r=dbaron 2016-07-21 18:36:39 +08:00
nsTextControlFrame.cpp Bug 1343037 part 6. Simplify the setup around the editor state's GetSelectionRange function. r=ehsan 2017-03-09 14:44:04 -05:00
nsTextControlFrame.h Bug 1340771 part 1 - Rename nsWeakFrame to AutoWeakFrame (automated change). r=tn 2017-03-01 18:03:14 +01:00