gecko-dev/layout
Kartikaya Gupta 45dff4d7bb Bug 1554985 - Prevent the WebRenderUserData on the render root item from getting discarded prematurely. r=jrmuizel
With retained display lists, a content render root might get marked as not
needing a build, in which case the nsDisplayRenderRoot::CreateWRCommands
function does an early exit. In this case, we don't mark the associated
WebRenderUserData as used during the display list build, which causes it to
get deleted at the end of the transaction. The next transaction that
doesn't early-exit will re-create the WebRenderUserData with a new boundary
object. The compositor therefore thinks it's a brand new thing and, if
conditions are right, could end up destroying and re-creating much of the
APZC tree. That in turn can have effects like discarding paint-skipped
scrolling.

This patch ensures we always touch the WebRenderUserData during the display
list build, so we don't discard it. This problem may still affect nested
nsDisplayRenderRoot instances but I don't think we ever cases where those
occur.

Depends on D36386

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

--HG--
extra : moz-landing-system : lando
2019-07-01 01:23:03 +00:00
..
base Merge inbound to mozilla-central. a=merge 2019-06-29 12:59:53 +03:00
build Bug 1490044 - Remove DOMPrefs. r=bzbarsky 2019-06-13 09:02:03 +00:00
doc Bug 1544343 - part 3: Make layout use mozilla::PresShell instead of nsIPresShell as far as possible r=emilio 2019-04-16 07:25:10 +00:00
forms Backed out 2 changesets (bug 1553705) for causing Bug1562142 . CLOSED TREE 2019-06-29 02:39:01 +03:00
generic Merge inbound to mozilla-central. a=merge 2019-06-29 12:59:53 +03:00
inspector Bug 1547621 - Move all inline methods of nsIPresShell into mozilla::PresShell r=smaug 2019-04-30 01:52:53 +00:00
ipc Bug 1556548 - Rename RenderFrame to RemoteLayerTreeOwner. r=mattwoodrow 2019-06-02 13:51:33 -04:00
mathml Bug 1557793 part 2. Stop using [array] in nsIStringBundle. r=Pike 2019-06-11 15:51:51 +00:00
media
painting Bug 1554985 - Prevent the WebRenderUserData on the render root item from getting discarded prematurely. r=jrmuizel 2019-07-01 01:23:03 +00:00
printing Bug 1444847 - part 2: Sort out basic API of `nsRange` for consistency with coming `StaticRange` r=smaug 2019-06-28 07:47:29 +00:00
reftests Bug 1556058 - Update test expectations for Android 7.0 reftests; r=kats 2019-06-28 17:30:48 +00:00
style Bug 1519958 - Drive by, remove unused CSS keywords. r=boris 2019-06-28 21:15:01 +02:00
svg Merge mozilla-central to mozilla-inbound. 2019-06-28 19:16:36 +03:00
tables Bug 1561738 - Remove nsStyleCoord. r=boris 2019-06-28 12:44:44 +02:00
tools Bug 1558598 - Force WebRender on or off in the reftest harness. r=ahal 2019-06-29 09:48:45 +00:00
xul Bug 1558980 - Convert all XUL mochitest plain tests to chrome. r=mossop 2019-06-26 18:00:53 +00:00
moz.build