mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 979973 - Fix displayport tile-alignment immediately after zooming. r=botond
Resolution and cumulative resolution on FrameMetrics are incorrect when the zoom level is about to change. Make sure to use the zoom rather than these values when aligning the displayport to tile boundaries in APZCCallbackHelper.
This commit is contained in:
parent
4d39320987
commit
673d3400b4
@ -73,9 +73,12 @@ MaybeAlignAndClampDisplayPort(mozilla::layers::FrameMetrics& aFrameMetrics,
|
|||||||
// Expand the display port to the next tile boundaries, if tiled thebes layers
|
// Expand the display port to the next tile boundaries, if tiled thebes layers
|
||||||
// are enabled.
|
// are enabled.
|
||||||
if (gfxPrefs::LayersTilesEnabled()) {
|
if (gfxPrefs::LayersTilesEnabled()) {
|
||||||
|
// We don't use LayersPixelsPerCSSPixel() here as mCumulativeResolution on
|
||||||
|
// this FrameMetrics may be incorrect (and is about to be reset by mZoom).
|
||||||
displayPort =
|
displayPort =
|
||||||
ExpandDisplayPortToTileBoundaries(displayPort + aActualScrollOffset,
|
ExpandDisplayPortToTileBoundaries(displayPort + aActualScrollOffset,
|
||||||
aFrameMetrics.LayersPixelsPerCSSPixel())
|
aFrameMetrics.mZoom *
|
||||||
|
ScreenToLayerScale(1.0))
|
||||||
- aActualScrollOffset;
|
- aActualScrollOffset;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user