зеркало из https://github.com/mozilla/gecko-dev.git
2641cbd682
With container scrolling, layers that are fixed wrt. the RCD-RSF are no longer descendants of layers with RCD-RSF metadata. This allows us to remove some code that handles this case in AsyncCompositionManager. In particular, when ApplyAsyncContentTransformToTree() calls AlignFixedAndStickyLayers(): - If we are currently processing a layer with RCD-RSF metadata, AlignFixedAndStickyLayers() will not do anything (because there will be no descendants fixed wrt. the RCD-RSF), so it doesn't matter what transform we pass to AlignFixedAndStickyLayers(). - If we are processing a different layer, then Metrics().IsRootContent() will be false, so GetCurrentAsyncTransformForFixedAdjustment() simplifies to just GetCurrentAsyncTransform(). As a result, GetCurrentAsyncTransformForFixedAdjustment() (and its helper GetCurrentAsyncViewportTransform()) can be removed, and its use replaced with GetCurrentAsyncTransform(). Differential Revision: https://phabricator.services.mozilla.com/D45595 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
public | ||
src | ||
test | ||
testutil | ||
util |