gecko-dev/layout/base
Kartikaya Gupta a971a37e5f Bug 1485834 - Allow recomputing the cumulative resolution in ComputeScrollMetadata. r=botond
We need to correctly populate the cumulative resolution field in the
ScrollMetadata in order to support zooming. Without this, the cumulative
resolution doesn't include the presShell resolution, and that results in
APZ getting into an inconsistent state.

Currently, the cumulative resolution is populated from the
ContainerLayerParameters object's scale, but in the case of WebRender,
we call ComputeScrollMetadata with an empty ContainerLayerParameters
since don't actually do layer building or rasterization in Gecko.
This patch makes this more explicit by changing the argument to a
Maybe<ContainerLayerParameters> and passing Nothing() from the WebRender
call sites.

In this scenario, we just use the cumulative presShell resolution as
the cumulative resolution, which should be correct for WebRender as
we won't have an "extra" CSS-derived resolution applied on the Gecko
side.

Depends on D9120

Differential Revision: https://phabricator.services.mozilla.com/D9121

--HG--
extra : moz-landing-system : lando
2018-10-19 14:24:50 +00:00
..
crashtests Bug 1497126 - Fix WPTs for 1 level of recursion when loading nested iframes with same URL, r=smaug 2018-10-08 16:04:57 +02:00
doc
gtest Bug 1485063 Part 4 - Move preferences used in AccessibleCaretManager to StaticPrefList.h r=mats 2018-09-21 21:59:52 +00:00
tests Bug 1482425 - PresShell::PageMove() should use different rules to look for a container element for aExtend value r=smaug 2018-10-18 04:42:53 +00:00
AccessibleCaret.cpp Bug 1485063 Part 1 - Move preferences used in AccessibleCaret to StaticPrefsList.h r=mats 2018-09-21 21:48:27 +00:00
AccessibleCaret.h Bug 1485063 Part 1 - Move preferences used in AccessibleCaret to StaticPrefsList.h r=mats 2018-09-21 21:48:27 +00:00
AccessibleCaretEventHub.cpp Bug 1485063 Part 2 - Move preferences used in AccessibleCaretEventHub to StaticPrefList.h r=mats 2018-09-21 22:01:31 +00:00
AccessibleCaretEventHub.h Bug 1485063 Part 2 - Move preferences used in AccessibleCaretEventHub to StaticPrefList.h r=mats 2018-09-21 22:01:31 +00:00
AccessibleCaretLogger.h
AccessibleCaretManager.cpp Bug 1492288 - Use IGNORE_ROOT_SCROLL_FRAME on Android when doing the hit test in AccessibleCaretManager::SelectWordOrShortcut(). r=kats 2018-09-26 18:16:03 +00:00
AccessibleCaretManager.h Bug 1485063 Part 4 - Move preferences used in AccessibleCaretManager to StaticPrefList.h r=mats 2018-09-21 21:59:52 +00:00
ArenaObjectID.h
ArenaRefPtr.h Bug 1465585: Switch from mozilla::Move to std::move. r=froydnj 2018-06-01 10:45:27 +02:00
ArenaRefPtrInlines.h Bug 1480222 part 3: Add includes to fix unified bustage in ArenaRefPtrInlines.h and nsComputedDOMStyle.cpp. r=TYLin 2018-08-01 15:09:54 -07:00
AutoProfilerStyleMarker.h Bug 1465585: Switch from mozilla::Move to std::move. r=froydnj 2018-06-01 10:45:27 +02:00
CaretAssociationHint.h
FrameProperties.h Bug 1479996 - Combine nsTArray::IndexOf and element access into lambda-friendly functions - r=froydnj 2018-08-28 22:04:09 +00:00
GeometryUtils.cpp Bug 1483394: Remove unneeded #includes of nsContentUtils.h in /layout. r=TYLin 2018-08-15 07:04:43 +00:00
GeometryUtils.h
LayoutConstants.h Bug 1490611 - physical to logical name refactor: DISPLAY_*_WIDTH to DISPLAY_*_INLINE_SIZE(as well as the relevant struct in the macro contents) r=jfkthame 2018-09-12 12:35:47 +00:00
LayoutLogging.cpp
LayoutLogging.h
MobileViewportManager.cpp Bug 1488910 - Rename remaining uses of "SPCSPS" to "visual viewport size". r=botond 2018-09-14 15:23:28 -04:00
MobileViewportManager.h Bug 1290420 Part 4: Make the PresShell create a MobileViewportManager on demand. r=botond,smaug 2018-10-04 03:28:40 +00:00
OverflowChangedTracker.h
PositionedEventTargeting.cpp Bug 1451169 - Use `nsStaticAtom*` instead of `nsStaticAtom**` in Element.h. r=baku 2018-04-03 13:21:06 +10:00
PositionedEventTargeting.h
PresShell.cpp Bug 1482425 - PresShell::PageMove() should use different rules to look for a container element for aExtend value r=smaug 2018-10-18 04:42:53 +00:00
PresShell.h Bug 1482425 - PresShell::PageMove() should use different rules to look for a container element for aExtend value r=smaug 2018-10-18 04:42:53 +00:00
PresState.ipdlh Bug 1443954 - Part 3: Add support for RefCounted types to IPDL, r=bz,froydnj,baku 2018-04-10 17:49:48 -04:00
RestyleManager.cpp Bug 1498755 - Part 2c: Allow ServoBindings.h and GeckoBindings.h to be used separately r=emilio 2018-10-14 00:05:48 +00:00
RestyleManager.h Bug 1493043 - Change function arguments in RestyleManager from nsIFrame& to nsIFrame* r=emilio 2018-09-21 17:45:49 +00:00
ScrollStyles.cpp Bug 1479995 - Rename ScrollbarStyles to ScrollStyles. r=mstange 2018-08-01 16:14:26 +10:00
ScrollStyles.h Bug 1479995 - Rename ScrollbarStyles to ScrollStyles. r=mstange 2018-08-01 16:14:26 +10:00
ShapeUtils.cpp Backed out 7 changesets (bug 1461046) for permafailing reftest on /reftests/css-invalid/select/select-disabled-fieldset-1.html a=backout 2018-06-02 05:07:03 +03:00
ShapeUtils.h Bug 1468590: Preemptively fix unified build bustage in layout/base. r=emilio 2018-06-13 20:39:58 +00:00
StackArena.cpp Bug 1469769 - Part 6: Replace non-failing NS_NOTREACHED with MOZ_ASSERT_UNREACHABLE. r=froydnj 2018-06-17 22:43:11 -07:00
StackArena.h
StaticPresData.cpp Bug 1498755 - Part 3: Merge AssertIsMainThreadOrServo{FontMetrics,LangFontPrefsCache}Locked r=emilio 2018-10-14 00:05:50 +00:00
StaticPresData.h
TouchManager.cpp Bug 1493737 - Fix many trivial calls to do_QueryInterface r=smaug 2018-10-01 21:38:01 +00:00
TouchManager.h
UnitTransforms.h Bug 1494836. Replace NormalizedRect for visible area. r=mstange 2018-09-26 10:32:41 -04:00
Units.h Bug 1467873 - Fix FrameMetrics::CalculateCompositedRectInCssPixels(). r=kats 2018-06-09 16:33:26 -04:00
WordMovementType.h
ZoomConstraintsClient.cpp Bug 1479549 Add a pref to disable double tap zooming in APZ r=botond 2018-08-01 11:25:32 -07:00
ZoomConstraintsClient.h Bug 1449631 part 2. Remove nsIDOMEventTarget::RemoveEventListener. r=smaug 2018-04-05 13:42:40 -04:00
moz.build Bug 1490216 - Part 1: Remove unused UndisplayeNode class. r=emilio 2018-09-12 17:37:38 +10:00
nsAutoLayoutPhase.cpp
nsAutoLayoutPhase.h
nsBidi.cpp
nsBidi.h
nsBidiPresUtils.cpp Bug 1453795 - Layout - Initialize member fields in classes/ structures. r=dbaron 2018-07-12 09:42:14 +03:00
nsBidiPresUtils.h Bug 1447483: Merge nsStyleContext and ServoStyleContext, rename to ComputedStyle. r=jwatt on a CLOSED TREE 2018-03-22 20:06:24 +01:00
nsCSSColorUtils.cpp Bug 1494519 - Use float division to avoid an MSVC warning. r=me 2018-09-27 12:43:42 +02:00
nsCSSColorUtils.h Bug 1382896 - Align Gecko and WebRender code for 3d border colors. r=mstange 2018-09-26 15:28:01 +02:00
nsCSSFrameConstructor.cpp Bug 1498873 - Simplify a check. r=bzbarsky 2018-10-17 20:40:08 +00:00
nsCSSFrameConstructor.h Bug 1497734 - Rename nsStaticAtom subclasses. r=heycam 2018-10-10 16:49:13 +11:00
nsCaret.cpp Bug 1483090 - Rename StyleUserInterface to StyleUI. r=emilio 2018-08-14 08:37:37 +00:00
nsCaret.h Bug 1455676 part 8. Remove nsIDOMNode usage from layout/. r=qdot 2018-05-29 22:58:48 -04:00
nsChangeHint.h Bug 1475033 part 1 - Rename nsChangeHint_CSSOverflowChange to nsChangeHint_ScrollbarChange. r=heycam 2018-08-03 16:42:33 +10:00
nsCompatibility.h
nsCounterManager.cpp Bug 1449404 part 1. Get rid of nsIContent::SetText. r=mccr8 2018-03-28 18:01:46 -04:00
nsCounterManager.h
nsDocumentViewer.cpp Bug 1493737 - Fix many trivial calls to do_QueryInterface r=smaug 2018-10-01 21:38:01 +00:00
nsFrameManager.cpp Bug 1490216 - Part 1: Remove unused UndisplayeNode class. r=emilio 2018-09-12 17:37:38 +10:00
nsFrameManager.h Bug 1461299: Make ESM not point to unbound NAC in the hover / active chain. r=smaug 2018-05-15 10:43:46 +02:00
nsFrameTraversal.cpp bug 1430701, remove now unused nsLightFrameIterator, r=mrbkap 2018-07-20 19:32:22 +03:00
nsFrameTraversal.h Bug 1488684 - Made nsIFrame-derived classes and some others 'final' where possible - r=dbaron 2018-09-06 01:23:14 +00:00
nsGenConList.cpp Bug 1482782 - Part 4: Move CSS pseudo-element atoms to nsGkAtoms. r=njn,emilio 2018-08-15 15:46:00 +10:00
nsGenConList.h Bug 1482782 - Part 4: Move CSS pseudo-element atoms to nsGkAtoms. r=njn,emilio 2018-08-15 15:46:00 +10:00
nsIDocumentViewerPrint.h Bug 1449400 part 5 - Remove StyleSetHandle. r=emilio 2018-03-29 22:15:46 +11:00
nsIFrameTraversal.h
nsILayoutDebugger.h
nsILayoutHistoryState.idl Bug 1438026 - Part 3: Replace nsPresState with the new PresState type, r=baku 2018-04-10 17:49:44 -04:00
nsIPercentBSizeObserver.h
nsIPreloadedStyleSheet.idl
nsIPresShell.h Bug 1473108 - Part 2: Make PresShell not point to unbound NAC in event content stack; r=smaug 2018-10-09 12:16:15 +00:00
nsIPresShellInlines.h
nsIReflowCallback.h
nsIStyleSheetService.idl
nsLayoutDebugger.cpp Bug 1494285 p3. Rename nsDisplayFilter to nsDisplayFilters. r=miko 2018-08-30 13:15:47 +01:00
nsLayoutHistoryState.cpp Bug 1465585: Switch from mozilla::Move to std::move. r=froydnj 2018-06-01 10:45:27 +02:00
nsLayoutUtils.cpp Bug 1485834 - Allow recomputing the cumulative resolution in ComputeScrollMetadata. r=botond 2018-10-19 14:24:50 +00:00
nsLayoutUtils.h Bug 1485834 - Allow recomputing the cumulative resolution in ComputeScrollMetadata. r=botond 2018-10-19 14:24:50 +00:00
nsPresArena.cpp Bug 1467483 - Assert that PresArena is only used on the main thread. r=mattwoodrow 2018-06-07 22:39:11 +02:00
nsPresArena.h Bug 1406727 - Improve diagnostics in BuildDisplayList. r=froydnj 2018-02-06 12:21:31 +13:00
nsPresArenaObjectList.h Bug 1490216 - Part 2: Remove non-existent types from nsPresArenaObjectList.h. r=emilio 2018-09-12 17:37:38 +10:00
nsPresContext.cpp Bug 1493737 - Fix many trivial calls to do_QueryInterface r=smaug 2018-10-01 21:38:01 +00:00
nsPresContext.h Bug 1445570 - Remove EnsureEventualAfterPaint timer. r=tnikkel 2018-09-06 02:21:39 +00:00
nsQuoteList.cpp Bug 1472443: Make StyleContentType an enum class. r=xidorn 2018-06-30 17:13:07 +02:00
nsQuoteList.h Bug 1472443: Make StyleContentType an enum class. r=xidorn 2018-06-30 17:13:07 +02:00
nsRefreshDriver.cpp Bug 1494745 part 3 - Make nsRefreshDriver::AddTimerAdjustmentObserver void since it's infallible. r=bz 2018-10-14 18:12:23 +02:00
nsRefreshDriver.h Bug 1494745 part 3 - Make nsRefreshDriver::AddTimerAdjustmentObserver void since it's infallible. r=bz 2018-10-14 18:12:23 +02:00
nsStyleChangeList.cpp Bug 1449670, part 1 - Convert IsNodeOfType(nsINode::eTEXT) to IsText(). r=bz 2018-04-12 15:41:00 -07:00
nsStyleChangeList.h Bug 1447828 part 8 - Remove remaining uses of StyleBackendType as well as the type itself. r=emilio 2018-03-29 02:34:34 +11:00
nsStyleSheetService.cpp Bug 1477579: Part 3 - Avoid duplicating static strings in category manager entries. r=froydnj 2018-07-23 17:41:06 -07:00
nsStyleSheetService.h Bug 1447828 part 5 - Remove StyleBackendType uses from nsStyleSheetService. r=emilio 2018-03-29 02:34:34 +11:00