gecko-dev/layout/base
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 1308793 - Crash when setting display:[inline-]{flex,grid} or columnset properties on a SVG <text> element. r=tn 2016-10-09 22:34:07 -05:00
doc
gtest Bug 1292904 Part 3 - Use only caret image for touch area if event is a mouse type. r=mtseng 2016-08-14 21:39:30 +08:00
tests Bug 1306603 - Remove rest of mozpasspointerevents code as it is not needed any more. r=kanru 2016-10-05 08:27:02 -04:00
AccessibleCaret.cpp Bug 1296990 - Make AppearanceString() return nsAutoString directly. r=mtseng 2016-08-21 21:41:32 +08:00
AccessibleCaret.h Bug 1296990 - Make AppearanceString() return nsAutoString directly. r=mtseng 2016-08-21 21:41:32 +08:00
AccessibleCaretEventHub.cpp Bug 1304263 - On Windows, fire the eMouseLongTap event as soon as APZ detects the long-press. r=TYLin 2016-10-04 09:31:15 -04:00
AccessibleCaretEventHub.h Bug 1298704 - Use flag to avoid calling AccessibleCaretEventHub::Reflow() recursively. r=mats 2016-08-29 15:36:45 +08:00
AccessibleCaretLogger.h
AccessibleCaretManager.cpp Bug 1307252 - Hide the carets when the selection is made by select all. r=kanru,kats 2016-10-05 15:46:36 +08:00
AccessibleCaretManager.h Bug 1293483 - Keep the carets hidden when the user is using a mouse to modify the selection. r=TYLin 2016-10-03 08:57:44 -04:00
ActiveLayerTracker.cpp Bug 1304922 - Part 1: Rename nsLayoutUtils::HasCurrentAnimationOfProperty() to nsLayoutUtils::HasActiveAnimationOfProperty(). r=birtles 2016-10-05 14:25:41 +09:00
ActiveLayerTracker.h Bug 1293739 - Part 1: Rename nsCSSProperty to nsCSSPropertyID. r=dholbert 2016-08-16 18:37:48 -07:00
ArenaObjectID.h
ArenaRefPtr.h
ArenaRefPtrInlines.h
BorderCache.h Bug 382721 - Part 4: Support dotted/dashed border-radiused corners. r=jrmuizel 2015-08-06 11:42:09 +09:00
BorderConsts.h Bug 382721 - Part 8: Render too large dotted/dashed corner with solid style. r=jrmuizel 2016-06-10 13:10:03 +09:00
CaretAssociationHint.h
DashedCornerFinder.cpp Bug 382721 - Part 4: Support dotted/dashed border-radiused corners. r=jrmuizel 2015-08-06 11:42:09 +09:00
DashedCornerFinder.h Bug 382721 - Part 4: Support dotted/dashed border-radiused corners. r=jrmuizel 2015-08-06 11:42:09 +09:00
DisplayItemClip.cpp Bug 1259734 - use AppendElements in DisplayItemClip::AppendRoundedRects; r=dholbert 2016-03-25 09:34:37 -04:00
DisplayItemClip.h
DisplayItemScrollClip.cpp Bug 1269321: Part 1 - Add a way to check if the current clip has rounded corners. r=mstange 2016-06-30 18:08:35 +02:00
DisplayItemScrollClip.h Bug 1269321: Part 1 - Add a way to check if the current clip has rounded corners. r=mstange 2016-06-30 18:08:35 +02:00
DisplayListClipState.cpp Bug 1303761 - Disable paint skipping for all scroll frames between the fixed element and the scrolled clip. r=tnikkel 2016-09-20 19:39:02 -04:00
DisplayListClipState.h Bug 1284586 - Disable paint-skipping for scrollframes that we detect as having a CSS-clipped descendant. r=mstange 2016-07-13 16:05:53 -04:00
DottedCornerFinder.cpp Bug 1297427 - Use calculate curve origin instead of reusing center curve origin in DottedCornerFinder. r=bas 2016-09-08 10:14:14 +09:00
DottedCornerFinder.h Bug 1297427 - Use calculate curve origin instead of reusing center curve origin in DottedCornerFinder. r=bas 2016-09-08 10:14:14 +09:00
FrameLayerBuilder.cpp Bug 1303897 - Part 1: Use TextureForwarder for Image::GetTextureClient. r=nical 2016-09-23 09:43:11 +12:00
FrameLayerBuilder.h Bug 1237102 - Make sure we don't generate invalidations for children of opacity:0 frames, even when plugins are present. r=tnikkel 2016-08-10 15:15:28 +12:00
FramePropertyTable.cpp
FramePropertyTable.h Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj 2016-08-24 14:47:04 +08:00
GeometryUtils.cpp Bug 1277131 : Part 1 - rename nsTableOuterFrame to nsTableWrapperFrame. r=heycam 2016-06-16 13:14:08 +01:00
GeometryUtils.h
LayerState.h
LayoutLogging.cpp
LayoutLogging.h Bug 1275744 - Reference MOZ_LOG in layout comments. r=erahm 2016-05-26 11:40:17 -07:00
MaskLayerImageCache.cpp
MaskLayerImageCache.h Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
MobileViewportManager.cpp Bug 1282902 - Part 2 - Extract resolution scaling into separate function. r=kats 2016-07-02 22:15:19 +02:00
MobileViewportManager.h Bug 1282902 - Part 2 - Extract resolution scaling into separate function. r=kats 2016-07-02 22:15:19 +02:00
OverflowChangedTracker.h Bug 1290335: stylo: Hoist OverflowChangedTracker to its own file. r=heycam 2016-08-03 15:11:15 -07:00
PaintTracker.cpp
PaintTracker.h
PositionedEventTargeting.cpp Bug 1259656 part.1 Rename WidgetEvent::refPoint to WidgetEvent::mRefPoint r=smaug 2016-04-18 23:09:02 +09:00
PositionedEventTargeting.h
RestyleLogging.h
RestyleManager.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
RestyleManager.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
RestyleManagerBase.cpp Bug 1299736 - Remove unsafe optimizations from FrameHasPositionedPlaceholderDescendants. r=bzbarsky 2016-10-04 11:39:36 -07:00
RestyleManagerBase.h Bug 1298205 - Fix includes of RestyleManagerBase.h. r=heycam 2016-08-29 11:19:49 -04:00
RestyleManagerHandle.h Bug 1292279 - Add a helper to get the real container and use it in nsPresShell::Content{Inserted,Removed}. r=heycam 2016-08-25 21:36:41 -07:00
RestyleManagerHandleInlines.h Bug 1292279 - Add a helper to get the real container and use it in nsPresShell::Content{Inserted,Removed}. r=heycam 2016-08-25 21:36:41 -07:00
RestyleTracker.cpp Bug 1301249 - nsIDocument::GetDocumentURI() should be fallible, r=smaug 2016-09-20 14:03:05 +02:00
RestyleTracker.h Bug 1305004 - fix ReResolveStyleContext related comments. r=heycam 2016-09-23 18:08:01 +08:00
RestyleTrackerInlines.h
ScrollbarStyles.cpp
ScrollbarStyles.h
ServoRestyleManager.cpp Bug 1304913 - Have Servo manage node data directly without FFI calls. r=Manishearth 2016-09-23 15:58:48 -07:00
ServoRestyleManager.h Bug 1292279 - Add a helper to get the real container and use it in nsPresShell::Content{Inserted,Removed}. r=heycam 2016-08-25 21:36:41 -07:00
StackArena.cpp
StackArena.h Bug 1263773 - Mark a bunch of classes in layout as MOZ_RAII. r=dholbert 2016-03-28 13:34:26 +01:00
StaticPresData.cpp Bug 1261552 - Introduce StaticPresData and hoist some shared functionality into it. r=heycam 2016-04-04 23:14:27 -07:00
StaticPresData.h Bug 1261552 - Introduce StaticPresData and hoist some shared functionality into it. r=heycam 2016-04-04 23:14:27 -07:00
TouchManager.cpp Bug 1298130 - Fix a potential null pointer dereference. r=smaug 2016-08-31 10:36:13 -04:00
TouchManager.h Bug 1162771 - Store the non-anonymous ancestor content along with the touch info the captured touch list. r=smaug 2016-08-18 07:13:29 -04:00
UnitTransforms.h Bug 1288210 - Simplify AlignFixedAndStickyLayers by not considering the local transform. r=kats,mstange 2016-09-28 13:33:38 -04:00
Units.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
WordMovementType.h
ZoomConstraintsClient.cpp Bug 1304052 - Use the unprefixed fullscreenchange event, and register the listener in the system group. r=xidorn 2016-09-22 09:42:44 -04:00
ZoomConstraintsClient.h Bug 1259733 - use forward declarations for nsIDocument in a few places; r=dholbert 2016-04-27 14:48:36 -04:00
moz.build Bug 924851 - patch 2 - When ENABLE_INTL_API is true, make nsBidi into a minimal wrapper around ICU's ubidi.h functions. r=xidorn 2016-10-06 09:49:17 +01:00
nsArenaMemoryStats.h
nsAutoLayoutPhase.cpp
nsAutoLayoutPhase.h
nsBidi.h Bug 924851 - patch 2 - When ENABLE_INTL_API is true, make nsBidi into a minimal wrapper around ICU's ubidi.h functions. r=xidorn 2016-10-06 09:49:17 +01:00
nsBidiPresUtils.cpp Bug 924851 - patch 2 - When ENABLE_INTL_API is true, make nsBidi into a minimal wrapper around ICU's ubidi.h functions. r=xidorn 2016-10-06 09:49:17 +01:00
nsBidiPresUtils.h Bug 1160847 part 4 - Remove useless lineOffset variable in nsBidiPresUtils::ResolveParagraph. r=jfkthame 2016-06-29 17:48:00 +10:00
nsBidi_ICU.cpp Bug 924851 - patch 2 - When ENABLE_INTL_API is true, make nsBidi into a minimal wrapper around ICU's ubidi.h functions. r=xidorn 2016-10-06 09:49:17 +01:00
nsBidi_ICU.h Bug 924851 - patch 2 - When ENABLE_INTL_API is true, make nsBidi into a minimal wrapper around ICU's ubidi.h functions. r=xidorn 2016-10-06 09:49:17 +01:00
nsBidi_noICU.cpp Bug 924851 - patch 2 - When ENABLE_INTL_API is true, make nsBidi into a minimal wrapper around ICU's ubidi.h functions. r=xidorn 2016-10-06 09:49:17 +01:00
nsBidi_noICU.h Bug 924851 - patch 2 - When ENABLE_INTL_API is true, make nsBidi into a minimal wrapper around ICU's ubidi.h functions. r=xidorn 2016-10-06 09:49:17 +01:00
nsCSSColorUtils.cpp
nsCSSColorUtils.h
nsCSSFrameConstructor.cpp Bug 1308793 - Crash when setting display:[inline-]{flex,grid} or columnset properties on a SVG <text> element. r=tn 2016-10-09 22:34:07 -05:00
nsCSSFrameConstructor.h Bug 1308793 - Crash when setting display:[inline-]{flex,grid} or columnset properties on a SVG <text> element. r=tn 2016-10-09 22:34:07 -05:00
nsCSSRendering.cpp Bug 1266621 part 5 - Convert border-color to store complex color. r=heycam 2016-09-27 20:16:35 +10:00
nsCSSRendering.h Bug 1275826 - Part 2. Remove a unsed parameter in PrepareImageLayer. r=mstange 2016-09-05 19:00:34 +08:00
nsCSSRenderingBorders.cpp Bug 1297427: Discount border dots with negative radii. r=jrmuizel 2016-09-08 14:00:54 +02:00
nsCSSRenderingBorders.h Bug 382721 - Part 9: Warn about too large dotted/dashed corner. r=jrmuizel 2016-06-10 13:10:03 +09:00
nsCaret.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
nsCaret.h
nsChangeHint.h Bug 1301500 - Separate change hint for adding/removing transform from UpdateContainingBlock. r=heycam 2016-09-29 14:15:32 -07:00
nsCompatibility.h
nsCounterManager.cpp Bug 1292618: Tidy up nsStyleContent's API now allocations are infallible. r=heycam 2016-08-19 13:17:54 -07:00
nsCounterManager.h Bug 1292618: Tidy up nsStyleContent's API now allocations are infallible. r=heycam 2016-08-19 13:17:54 -07:00
nsDisplayItemTypes.h
nsDisplayItemTypesList.h Bug 1302551 - Add nsDisplaySolidColorRegion and create it for elements that have the cutoutregion property set on them. r=mattwoodrow 2016-09-14 23:18:30 -04:00
nsDisplayList.cpp Bug 1299715 - Part 6. Move ComputeMaskGeometry from nsSVGIntegrationUtils to nsDisplayMask. r=mstange 2016-10-11 13:12:00 +08:00
nsDisplayList.h Bug 1299715 - Part 2. Correct the value of nsDisplayMask::mVisibleRect. r=mstange 2016-10-06 17:53:19 +08:00
nsDisplayListInvalidation.cpp Bug 1302551 - Add nsDisplaySolidColorRegion and create it for elements that have the cutoutregion property set on them. r=mattwoodrow 2016-09-14 23:18:30 -04:00
nsDisplayListInvalidation.h Bug 1302551 - Add nsDisplaySolidColorRegion and create it for elements that have the cutoutregion property set on them. r=mattwoodrow 2016-09-14 23:18:30 -04:00
nsDocumentViewer.cpp Bug 1305309, backout Bug 1214805, r=backout 2016-09-27 01:03:24 +03:00
nsFrameManager.cpp Bug 1261351: Look past ShadowRoots when looking for the parent for the UndisplayedMap. r=dbaron 2016-06-07 14:09:22 -07:00
nsFrameManager.h Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
nsFrameManagerBase.h
nsFrameTraversal.cpp Bug 1304540 part 2: Use nsCOMPtr/RefPtr (and their forget() API) instead of manual NS_ADDREF macros, in a few files within layout. r=mats 2016-09-21 15:41:26 -07:00
nsFrameTraversal.h
nsGenConList.cpp Bug 1291707 part 3 - Use hashtable to track nsGenConNodes related to a frame. r=bz 2016-08-23 10:31:26 +10:00
nsGenConList.h Bug 1291707 part 3 - Use hashtable to track nsGenConNodes related to a frame. r=bz 2016-08-23 10:31:26 +10:00
nsIDocumentViewerPrint.h Bug 1245978 part 3: Drop unnecessary whitespace in NS_DECL_NSIDOCUMENTVIEWERPRINT macro. (whitespace only, no review) 2016-02-29 15:09:13 -08:00
nsIFrameTraversal.h
nsILayoutDebugger.h
nsILayoutHistoryState.h
nsIPercentBSizeObserver.h Bug 1277129 Part 7b - Rename various ReflowState variables to ReflowInput. r=dbaron 2016-07-21 18:36:39 +08:00
nsIPresShell.h Bug 1304302 part 10 - Replace all uses of StyleSheetHandle. r=heycam 2016-09-26 22:03:25 +10:00
nsIReflowCallback.h
nsIStyleSheetService.idl
nsLayoutDebugger.cpp Bug 1298844 - Add PrintDisplayItemToStdout and PrintDisplayListToStdout helper functions for debugging. r=jrmuizel 2016-08-22 15:49:09 -04:00
nsLayoutHistoryState.cpp
nsLayoutUtils.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
nsLayoutUtils.h 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
nsPresArena.cpp
nsPresArena.h
nsPresArenaObjectList.h
nsPresContext.cpp Bug 1308459 - Rename RefreshDriver::PresContext() to hint about its behavior, r=tnikkel 2016-10-12 14:27:38 +03:00
nsPresContext.h Bug 1308459 - Rename RefreshDriver::PresContext() to hint about its behavior, r=tnikkel 2016-10-12 14:27:38 +03:00
nsPresShell.cpp Bug 1308459 - Rename RefreshDriver::PresContext() to hint about its behavior, r=tnikkel 2016-10-12 14:27:38 +03:00
nsPresShell.h Bug 1304302 part 10 - Replace all uses of StyleSheetHandle. r=heycam 2016-09-26 22:03:25 +10:00
nsPresState.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
nsQuoteList.cpp Bug 1261754 - Part 3: Move quotes from nsStyleQuotes to nsStyleList and delete nsStyleQuotes. r=dholbert 2016-04-12 15:52:40 +10:00
nsQuoteList.h
nsRefreshDriver.cpp Bug 1308459 - Rename RefreshDriver::PresContext() to hint about its behavior, r=tnikkel 2016-10-12 14:27:38 +03:00
nsRefreshDriver.h Bug 1308459 - Rename RefreshDriver::PresContext() to hint about its behavior, r=tnikkel 2016-10-12 14:27:38 +03:00
nsStyleChangeList.cpp Bug 1295818: Port nsStyleChangeList to modern C++. r=heycam 2016-08-18 10:02:37 -07:00
nsStyleChangeList.h Bug 1295818: Port nsStyleChangeList to modern C++. r=heycam 2016-08-18 10:02:37 -07:00
nsStyleSheetService.cpp Bug 1304302 part 10 - Replace all uses of StyleSheetHandle. r=heycam 2016-09-26 22:03:25 +10:00
nsStyleSheetService.h Bug 1304302 part 10 - Replace all uses of StyleSheetHandle. r=heycam 2016-09-26 22:03:25 +10:00