gecko-dev/layout/generic
Kartikaya Gupta fa397ea897 Bug 1304689 - Ensure frame reconstructions don't clobber a 'stronger' scroll origin with a 'weaker' one. r=tnikkel
If, within a single refresh driver tick, the scroll position is updated by JS
explicitly, and then subsequently also updated by a frame reconstruction, the
scroll origin from the former (nsGkAtoms::other) can get clobbered by the latter
(to nsGkAtoms::restore). The restore scroll origin is "weaker" in that it can
be ignored by the APZ code in some circumstances. This is undesirable because
it means the JS scroll update also gets ignored. This patch ensures that when
setting the scroll origin we don't do this clobbering of stronger origins with
weaker origins.

MozReview-Commit-ID: DA4EHp1Debu

--HG--
extra : rebase_source : 99fd1f91698a605792b2a622450f1ff31bc89101
2016-10-11 09:36:22 -04:00
..
crashtests Bug 1304441 Part 3 - Insert main summary's frame construction item at front of the list. r=bz 2016-10-05 14:43:32 +08:00
test Bug 1305579 - If we fail to restore the scroll position while there's a reflow pending, hold on to it and try again later. r=tnikkel 2016-09-27 14:40:56 -04:00
AsyncScrollBase.cpp Bug 1199468 - Create prefs for the smooth scroll timing function shape. r=kats 2016-01-07 21:09:18 +01:00
AsyncScrollBase.h
BlockReflowInput.cpp Bug 1302758 Part 2 - Replace NOISY_FLOATMANAGER with nsBlockFrame::gNoisyFloatManager. r=dholbert 2016-09-15 14:32:12 +08:00
BlockReflowInput.h Bug 1297306 - part6:replace NS_STYLE_CLEAR_* with StyleClear enum class. r=xidorn 2016-09-07 10:20:17 +08:00
DetailsFrame.cpp Bug 1304441 Part 3 - Insert main summary's frame construction item at front of the list. r=bz 2016-10-05 14:43:32 +08:00
DetailsFrame.h Bug 1304441 Part 3 - Insert main summary's frame construction item at front of the list. r=bz 2016-10-05 14:43:32 +08:00
FrameChildList.cpp Bug 1064843 part 6 - Add backdrop frame list. r=dholbert 2016-01-28 10:11:00 +11:00
FrameChildList.h Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj 2016-02-02 17:36:30 +02:00
JustificationUtils.h Bug 1277775 - Replace MOZ_CONSTEXPR{_VAR,_TMPL} with constexpr. r=froydnj 2016-07-08 14:39:53 -07:00
MathMLTextRunFactory.cpp Bug 1280887 - patch 2 - Make gfxTextRun refcounted, replace usage of UniquePtr<> with RefPtr<> for textruns, and make nsTextFrame hold a strong reference to its run(s). r=mats 2016-08-19 13:14:22 +01:00
MathMLTextRunFactory.h Bug 1283273 - Change nsAutoPtr to UniquePtr in classes within layout/generic. r=dholbert 2016-07-08 08:08:00 +02:00
ReflowInput.cpp Bug 1304012 -- Part 2: Rename nsStyleStruct Computed**Self functions to Used**Self. r=dholbert 2016-09-30 09:15:57 -07:00
ReflowInput.h Bug 1299066: Make NS_STYLE_DISPLAY_* an enum class. Prefer indexing instead of linear search in the frame constructor r=heycam,bz 2016-09-01 20:41:17 -07:00
ReflowOutput.cpp Bug 1277129 Part 5c - Rename nsHTMLReflowMetrics to ReflowOutput. r=dbaron 2016-07-21 18:36:38 +08:00
ReflowOutput.h Bug 1277129 Part 5c - Rename nsHTMLReflowMetrics to ReflowOutput. r=dbaron 2016-07-21 18:36:38 +08:00
RubyUtils.cpp Bug 1227927 Part 2 - Remove nsIFrame::GetFirstPrincipalChild(). r=mats 2016-01-29 22:42:14 +08:00
RubyUtils.h Bug 1263773 - Mark a bunch of classes in layout as MOZ_RAII. r=dholbert 2016-03-28 13:34:26 +01:00
ScrollSnap.cpp Bug 1219296 - Move the layout.css.scroll-snap.proximity-threshold pref to gfxPrefs, so it can be queried on the compositor thread. r=kats 2016-03-18 21:15:45 -04:00
ScrollSnap.h Bug 1219296 - Scroll snap directly in APZ instead of going through the main thread. r=kats 2016-03-28 18:36:02 -04:00
ScrollVelocityQueue.cpp
ScrollVelocityQueue.h
ScrollbarActivity.cpp Bug 824592 part 3. Get rid of nsIDOMElementCSSInlineStyle. r=peterv 2016-08-02 11:05:38 -07:00
ScrollbarActivity.h
Selection.h Bug 1300905 - When long-pressing on a selection, don't dismiss the selection and start a new one. Show the context menu instead. r=TYLin,mats 2016-09-30 09:36:10 -04:00
SelectionChangeListener.h
StickyScrollContainer.cpp Bug 1280344 - Use first continuation's normal position in computing sticky scroll ranges for APZ. r=dholbert 2016-07-12 12:36:31 -04:00
StickyScrollContainer.h
TextOverflow.cpp Bug 1299741 part 11 - Change text-{emphasis,fill,stroke}-color to using StyleComplexColor. r=dbaron 2016-09-16 14:40:45 +10:00
TextOverflow.h Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
Visibility.h Bug 1284350. Backed out changeset 69abdc731a99 (Bug 1261554 (Part 1) - Prepare for implementing in-displayport visibility tracking. r=mstange) 2016-09-12 00:19:08 -05:00
WritingModes.h Bug 1297306 - part6:replace NS_STYLE_CLEAR_* with StyleClear enum class. r=xidorn 2016-09-07 10:20:17 +08:00
broken-image.png
folder.png
frame-graph.py
jar.mn
loading-image.png
moz.build Bug 1284350. Backed out changeset bb3bf463c0ec (Bug 1261554 (Part 3) - Visualize Visibility::IN_DISPLAYPORT regions in the APZ minimap visibility debugger. r=botond) 2016-09-12 00:19:08 -05:00
nsAbsoluteContainingBlock.cpp Bug 1293384 - Part 2: Rename Snprintf.h header to Sprintf.h. r=froydnj 2016-08-14 23:43:21 -07:00
nsAbsoluteContainingBlock.h Bug 1277129 Part 7b - Rename various ReflowState variables to ReflowInput. r=dbaron 2016-07-21 18:36:39 +08:00
nsAtomicContainerFrame.h Bug 1064843 part 1 - Make nsImageFrame inherit nsContainerFrame. r=dholbert 2016-01-28 10:11:00 +11:00
nsAutoCopyListener.h Bug 1261299 - Add new clipboard kSelectionCache to cache the current selection for OSX service menu. Add a constructor to nsAutoCopyListener which sets the clipboard to copy to. Pass in kSelectionCache for OSX or kSelectionClipboard for linux. r=mstange 2016-06-03 12:04:22 -04:00
nsBRFrame.cpp Bug 1297306 - part6:replace NS_STYLE_CLEAR_* with StyleClear enum class. r=xidorn 2016-09-07 10:20:17 +08:00
nsBackdropFrame.cpp Bug 1300337 - Replace None_ variants from nsStyleConsts.h with None; r=heycam,TYLin 2016-09-04 00:16:58 +05:30
nsBackdropFrame.h Bug 1300206: Add some missing #includes & namespaces in layout/generic, to prevent unified build bustage. r=mats 2016-09-02 15:01:09 -07:00
nsBlockDebugFlags.h Bug 1302758 Part 2 - Replace NOISY_FLOATMANAGER with nsBlockFrame::gNoisyFloatManager. r=dholbert 2016-09-15 14:32:12 +08:00
nsBlockFrame.cpp Bug 1307728 - convert LineReflowStatus to an enum class. r=mats 2016-10-07 00:36:07 +08:00
nsBlockFrame.h Bug 1307728 - convert LineReflowStatus to an enum class. r=mats 2016-10-07 00:36:07 +08:00
nsBlockReflowContext.cpp Bug 1297306 - part6:replace NS_STYLE_CLEAR_* with StyleClear enum class. r=xidorn 2016-09-07 10:20:17 +08:00
nsBlockReflowContext.h Bug 1277129 Part 7c - Rename various RS variables to RI. r=dbaron 2016-07-21 18:36:39 +08:00
nsBulletFrame.cpp Bug 1288992 Part 3 - Rename local variables named metrics to reflowOutput. r=dholbert 2016-07-26 17:10:52 +08:00
nsBulletFrame.h Bug 1277129 Part 7b - Rename various ReflowState variables to ReflowInput. r=dbaron 2016-07-21 18:36:39 +08:00
nsCanvasFrame.cpp Bug 1284837 - Disallow implicit conversions from float to integer when creating IntPoint and IntSize objects. r=botond 2016-07-26 16:48:30 +02:00
nsCanvasFrame.h Bug 1277129 Part 7b - Rename various ReflowState variables to ReflowInput. r=dbaron 2016-07-21 18:36:39 +08:00
nsColumnSetFrame.cpp Bug 1266621 part 5 - Convert border-color to store complex color. r=heycam 2016-09-27 20:16:35 +10:00
nsColumnSetFrame.h Bug 1277129 Part 7b - Rename various ReflowState variables to ReflowInput. r=dbaron 2016-07-21 18:36:39 +08:00
nsContainerFrame.cpp Bug 1299066: Make NS_STYLE_DISPLAY_* an enum class. Prefer indexing instead of linear search in the frame constructor r=heycam,bz 2016-09-01 20:41:17 -07:00
nsContainerFrame.h Bug 1171419 part 10 - Rename RenumberLists() to RenumberList(). r=xidorn 2016-09-01 17:36:23 +02:00
nsDirection.h
nsFirstLetterFrame.cpp Bug 1307402 - use a more precise bounding box for initial letter texts. r=jfkthame 2016-10-04 22:22:52 +08:00
nsFirstLetterFrame.h Bug 1277129 Part 7b - Rename various ReflowState variables to ReflowInput. r=dbaron 2016-07-21 18:36:39 +08:00
nsFlexContainerFrame.cpp Bug 1090031: Apply CSS 'align-content' in flex containers if they *could* wrap (rather than if they *have* wrapped). r=mats 2016-10-12 09:04:03 -07:00
nsFlexContainerFrame.h Bug 1306894 Part 1: Cache baseline from nsFlexContainerFrame::Reflow() for use in later calls to GetLogicalBaseline(). r=dholbert 2016-10-11 12:54:00 -07:00
nsFloatManager.cpp Bug 1302758 Part 3 - Remove nullptr check of operator new in CreateFloatManager. r=dholbert 2016-09-15 23:29:57 +08:00
nsFloatManager.h Bug 1302758 Part 3 - Remove nullptr check of operator new in CreateFloatManager. r=dholbert 2016-09-15 23:29:57 +08:00
nsFontInflationData.cpp Bug 1277129 Part 7b - Rename various ReflowState variables to ReflowInput. r=dbaron 2016-07-21 18:36:39 +08:00
nsFontInflationData.h Bug 1277129 Part 7b - Rename various ReflowState variables to ReflowInput. r=dbaron 2016-07-21 18:36:39 +08:00
nsFrame.cpp Backed out 2 changesets (bug 1278136) for failures in no-stacking-context-opacity-removing-animation-in-delay.html 2016-10-11 20:40:36 -07:00
nsFrame.h Backed out changeset ff84b85aa1cb (bug 1291667) for asserting at nsRuleNode.cpp:1322 and failing mochitests and reftests. r=backout 2016-08-10 12:59:15 +02:00
nsFrameIdList.h Bug 1288591 - Implement the layout for <input type=time>. r=mconley, r=dholbert, r=smaug 2016-10-06 00:17:00 -04:00
nsFrameList.cpp Bug 1295192 - part 1 - remove CPP_THROW_NEW on layout struct operator new overloads that forward to nsPresShell::AllocateByObjectID; r=dholbert 2016-08-17 15:28:45 -04:00
nsFrameList.h Bug 1295192 - part 1 - remove CPP_THROW_NEW on layout struct operator new overloads that forward to nsPresShell::AllocateByObjectID; r=dholbert 2016-08-17 15:28:45 -04:00
nsFrameSelection.h Bug 1261299 - Update the selection cache on repaint to handle when a pre-existing selection becomes active aka the current selection. r=smaug 2016-07-27 16:05:37 -04:00
nsFrameSetFrame.cpp Bug 712936 - Convert users of PR_STATIC_ASSERT to C++11 static_assert(). r=Ms2ger 2016-08-23 11:24:54 -04:00
nsFrameSetFrame.h Bug 1277129 Part 7b - Rename various ReflowState variables to ReflowInput. r=dbaron 2016-07-21 18:36:39 +08:00
nsFrameState.cpp Bug 1144096 part 5 - [css-grid] Create a couple of Grid container frame bits. r=dholbert 2016-03-11 17:39:26 +01:00
nsFrameState.h Bug 1265624 - Remove unnecessary compiler version check for MSVS 2010 in nsFrameState.h. r=heycam 2016-04-17 17:09:32 -07:00
nsFrameStateBits.h Bug 1294628 - Replace block reflow input flags with a bit fields struct. r=dholbert 2016-08-12 15:28:45 +08:00
nsFrameUtil.cpp
nsGfxScrollFrame.cpp Bug 1304689 - Ensure frame reconstructions don't clobber a 'stronger' scroll origin with a 'weaker' one. r=tnikkel 2016-10-11 09:36:22 -04:00
nsGfxScrollFrame.h Bug 1304689 - Ensure frame reconstructions don't clobber a 'stronger' scroll origin with a 'weaker' one. r=tnikkel 2016-10-11 09:36:22 -04:00
nsGridContainerFrame.cpp Bug 1306906 - [css-grid] Get the relevant baseline from the grid item for the basline group. r=dholbert 2016-10-06 22:43:22 +02:00
nsGridContainerFrame.h Bug 1151204 part 4 - [css-grid] Implement Grid Container Baselines. r=dholbert 2016-10-01 02:26:39 +02:00
nsHTMLCanvasFrame.cpp Bug 1277129 Part 7b - Rename various ReflowState variables to ReflowInput. r=dbaron 2016-07-21 18:36:39 +08:00
nsHTMLCanvasFrame.h Bug 1277129 Part 7b - Rename various ReflowState variables to ReflowInput. r=dbaron 2016-07-21 18:36:39 +08:00
nsHTMLParts.h Bug 1288591 - Implement the layout for <input type=time>. r=mconley, r=dholbert, r=smaug 2016-10-06 00:17:00 -04:00
nsIAnonymousContentCreator.h
nsIFrame.h Bug 1299715 - Part 8. Fix typo in comment of GetVisualOverflowRect. r=mstange 2016-10-07 15:15:44 +08:00
nsIFrameInlines.h Bug 1299066: Make NS_STYLE_DISPLAY_* an enum class. Prefer indexing instead of linear search in the frame constructor r=heycam,bz 2016-09-01 20:41:17 -07:00
nsIFrameUtil.h
nsILineIterator.h
nsIObjectFrame.h
nsIPageSequenceFrame.h
nsIScrollPositionListener.h
nsIScrollableFrame.h Bug 1304689 - Ensure frame reconstructions don't clobber a 'stronger' scroll origin with a 'weaker' one. r=tnikkel 2016-10-11 09:36:22 -04:00
nsIStatefulFrame.h Bug 1300206: Add some missing #includes & namespaces in layout/generic, to prevent unified build bustage. r=mats 2016-09-02 15:01:09 -07:00
nsImageFrame.cpp Bug 1266621 part 5 - Convert border-color to store complex color. r=heycam 2016-09-27 20:16:35 +10:00
nsImageFrame.h Bug 1284350. Backed out changeset d6a286242f2d (Bug 1268348 - Pass the previous visibility state to OnVisibilityChange(). r=mstange) 2016-09-12 00:19:07 -05:00
nsImageMap.cpp Bug 1263782 - Kill off the deprecated nsINode::IsInDoc(). r=baku 2016-03-31 11:58:25 +01:00
nsImageMap.h Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj 2016-02-02 17:36:30 +02:00
nsInlineFrame.cpp Bug 1260031 - Not force break before a block when calculating intrinsic width if the current line is empty and the block cannot intersect floats. r=dbaron 2016-08-23 09:29:45 +10:00
nsInlineFrame.h Bug 1277129 Part 7b - Rename various ReflowState variables to ReflowInput. r=dbaron 2016-07-21 18:36:39 +08:00
nsIntervalSet.cpp
nsIntervalSet.h
nsLeafFrame.cpp Bug 1277129 Part 7b - Rename various ReflowState variables to ReflowInput. r=dbaron 2016-07-21 18:36:39 +08:00
nsLeafFrame.h Bug 1277129 Part 7b - Rename various ReflowState variables to ReflowInput. r=dbaron 2016-07-21 18:36:39 +08:00
nsLineBox.cpp Bug 1308077 - remove default branch of switch-case-statement in nsLineBox::BreakTypeToString. r=xidorn 2016-10-06 15:22:22 +08:00
nsLineBox.h Bug 1297306 - part7:replace StyleClear related NS_ASSERTION with MOZ_ASSERT. r=xidorn 2016-09-07 10:20:17 +08:00
nsLineLayout.cpp Bug 1299727 - Rename NS_WARN_IF_FALSE as NS_WARNING_ASSERTION. r=erahm. 2016-09-01 15:01:16 +10:00
nsLineLayout.h Bug 1277129 Part 7c - Rename various RS variables to RI. r=dbaron 2016-07-21 18:36:39 +08:00
nsPageContentFrame.cpp Bug 1277129 Part 7b - Rename various ReflowState variables to ReflowInput. r=dbaron 2016-07-21 18:36:39 +08:00
nsPageContentFrame.h Bug 1277129 Part 5c - Rename nsHTMLReflowMetrics to ReflowOutput. r=dbaron 2016-07-21 18:36:38 +08:00
nsPageFrame.cpp Bug 1277129 Part 7b - Rename various ReflowState variables to ReflowInput. r=dbaron 2016-07-21 18:36:39 +08:00
nsPageFrame.h Bug 1277129 Part 7b - Rename various ReflowState variables to ReflowInput. r=dbaron 2016-07-21 18:36:39 +08:00
nsPlaceholderFrame.cpp Bug 1296509 - Optimize GetFlattenedTreeParent. r=smaug 2016-08-19 14:43:53 -07:00
nsPlaceholderFrame.h Bug 1171419 part 3 - Override RenumberFrameAndDescendants in nsPlaceholderFrame instead and deal with it there rather than nsContainerFrame. r=xidorn 2016-09-01 17:36:22 +02:00
nsPluginFrame.cpp Bug 1018486 - Part 4: Changes in layout/, r=bz 2016-09-07 10:50:40 -04:00
nsPluginFrame.h Bug 1293117 (part 5) - Change many NS_METHOD occurrences to NS_IMETHOD. r=froydnj. 2016-08-08 10:54:50 +10:00
nsQueryFrame.h
nsRubyBaseContainerFrame.cpp Bug 1299727 - Rename NS_WARN_IF_FALSE as NS_WARNING_ASSERTION. r=erahm. 2016-09-01 15:01:16 +10:00
nsRubyBaseContainerFrame.h Bug 1277129 Part 7b - Rename various ReflowState variables to ReflowInput. r=dbaron 2016-07-21 18:36:39 +08:00
nsRubyBaseFrame.cpp Bug 1264837 Part 9 - Remove nsRubyBaseFrameSuper. r=dholbert 2016-04-18 14:04:03 +08:00
nsRubyBaseFrame.h Bug 1264837 Part 9 - Remove nsRubyBaseFrameSuper. r=dholbert 2016-04-18 14:04:03 +08:00
nsRubyContentFrame.cpp Bug 1264837 Part 10 - Remove nsRubyContentFrameSuper. r=dholbert 2016-04-18 14:06:23 +08:00
nsRubyContentFrame.h Bug 1264837 Part 10 - Remove nsRubyContentFrameSuper. r=dholbert 2016-04-18 14:06:23 +08:00
nsRubyFrame.cpp Bug 1260031 - Not force break before a block when calculating intrinsic width if the current line is empty and the block cannot intersect floats. r=dbaron 2016-08-23 09:29:45 +10:00
nsRubyFrame.h Bug 1277129 Part 7b - Rename various ReflowState variables to ReflowInput. r=dbaron 2016-07-21 18:36:39 +08:00
nsRubyTextContainerFrame.cpp Bug 1277129 Part 7b - Rename various ReflowState variables to ReflowInput. r=dbaron 2016-07-21 18:36:39 +08:00
nsRubyTextContainerFrame.h Bug 1277129 Part 7b - Rename various ReflowState variables to ReflowInput. r=dbaron 2016-07-21 18:36:39 +08:00
nsRubyTextFrame.cpp Bug 1277129 Part 7b - Rename various ReflowState variables to ReflowInput. r=dbaron 2016-07-21 18:36:39 +08:00
nsRubyTextFrame.h Bug 1277129 Part 7b - Rename various ReflowState variables to ReflowInput. r=dbaron 2016-07-21 18:36:39 +08:00
nsSelection.cpp Bug 924851 - patch 1 - Move definition of nsBidiLevel/nsBidiDirection and frame bidi properties from nsBidi.h to nsIFrame.h, in preparation for removal of nsBidi. r=xidorn 2016-10-06 09:49:14 +01:00
nsSimplePageSequenceFrame.cpp Bug 1297054 - remove null check in CanvasRenderingContext2D::InitializeWithDrawTarget. r=jrmuizel 2016-08-23 11:41:21 +03:00
nsSimplePageSequenceFrame.h Bug 1277129 Part 7b - Rename various ReflowState variables to ReflowInput. r=dbaron 2016-07-21 18:36:39 +08:00
nsSplittableFrame.cpp Bug 1297982 - Replace NS_STYLE_BOX_DECORATION_BREAK_* with enum class; r=xidorn 2016-08-26 12:44:32 +05:30
nsSplittableFrame.h Bug 1277129 Part 7b - Rename various ReflowState variables to ReflowInput. r=dbaron 2016-07-21 18:36:39 +08:00
nsSubDocumentFrame.cpp Bug 1306603 - Remove rest of mozpasspointerevents code as it is not needed any more. r=kanru 2016-10-05 08:27:02 -04:00
nsSubDocumentFrame.h Bug 1277129 Part 7b - Rename various ReflowState variables to ReflowInput. r=dbaron 2016-07-21 18:36:39 +08:00
nsTextFrame.cpp Bug 1298774 - Part 5: Make nsStyleSVGPaint use css::URLValue for url() storage instead of FragmentOrURL. r=cjku 2016-10-11 14:56:11 +08:00
nsTextFrame.h Bug 1307402 - use a more precise bounding box for initial letter texts. r=jfkthame 2016-10-04 22:22:52 +08:00
nsTextFrameUtils.cpp
nsTextFrameUtils.h Bug 1288938: layout: Move the GlyphObserver to the text run instead of the frame. r=jfkthame 2016-08-03 10:53:37 -07:00
nsTextRunTransformations.cpp Bug 1308502 followup, add missing const-ness to gfxTextRun::SetPotentialLineBreaks param, tidy up a bit. r=m_kato 2016-10-11 13:47:11 +01:00
nsTextRunTransformations.h Bug 1308502 followup, add missing const-ness to gfxTextRun::SetPotentialLineBreaks param, tidy up a bit. r=m_kato 2016-10-11 13:47:11 +01:00
nsVideoFrame.cpp Bug 1284350. Backed out changeset d6a286242f2d (Bug 1268348 - Pass the previous visibility state to OnVisibilityChange(). r=mstange) 2016-09-12 00:19:07 -05:00
nsVideoFrame.h Bug 1284350. Backed out changeset d6a286242f2d (Bug 1268348 - Pass the previous visibility state to OnVisibilityChange(). r=mstange) 2016-09-12 00:19:07 -05:00
nsViewportFrame.cpp Bug 1277129 Part 7b - Rename various ReflowState variables to ReflowInput. r=dbaron 2016-07-21 18:36:39 +08:00
nsViewportFrame.h Bug 1277129 Part 7b - Rename various ReflowState variables to ReflowInput. r=dbaron 2016-07-21 18:36:39 +08:00