mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 16:25:38 +00:00
Bug 1465616 - Remove call to AlignFixedAndStickyLayers for RCD-RSF. r=botond
MozReview-Commit-ID: B8HH6mbjTnv --HG-- extra : rebase_source : 15eff992861e9a51b40a580df57067bfc5b88760
This commit is contained in:
parent
5261c87fd1
commit
bf18fe089c
@ -1068,9 +1068,17 @@ AsyncCompositionManager::ApplyAsyncContentTransformToTree(Layer *aLayer,
|
||||
* CompleteAsyncTransform(
|
||||
AdjustForClip(asyncTransformWithoutOverscroll, layer));
|
||||
|
||||
AlignFixedAndStickyLayers(layer, layer, metrics.GetScrollId(), oldTransform,
|
||||
transformWithoutOverscrollOrOmta, fixedLayerMargins,
|
||||
&clipPartsCache);
|
||||
// When applying transformations to the RCD-RSF with zoom-enabled,
|
||||
// avoid re-aligning fixed/sticky layers to make them appear static
|
||||
// relative to the visual viewport.
|
||||
//
|
||||
// This is a partial fix and will require changes to how the async
|
||||
// transform is computed, which will be done in Bug 1465618.
|
||||
if (!metrics.IsRootContent() || !gfxPrefs::APZAllowZooming()) {
|
||||
AlignFixedAndStickyLayers(layer, layer, metrics.GetScrollId(), oldTransform,
|
||||
transformWithoutOverscrollOrOmta, fixedLayerMargins,
|
||||
&clipPartsCache);
|
||||
}
|
||||
|
||||
// Combine the local clip with the ancestor scrollframe clip. This is not
|
||||
// included in the async transform above, since the ancestor clip should not
|
||||
|
Loading…
Reference in New Issue
Block a user