mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 937896 - Remove unwanted zoom in APZC::NotifyLayersUpdated(). r=kats
This commit is contained in:
parent
1200b8c5d1
commit
522b1cd18e
@ -1284,13 +1284,9 @@ void AsyncPanZoomController::NotifyLayersUpdated(const FrameMetrics& aLayerMetri
|
||||
aLayerMetrics.mCompositionBounds.height == mFrameMetrics.mCompositionBounds.height) {
|
||||
// Remote content has sync'd up to the composition geometry
|
||||
// change, so we can accept the viewport it's calculated.
|
||||
CSSToScreenScale previousResolution = mFrameMetrics.CalculateIntrinsicScale();
|
||||
mFrameMetrics.mViewport = aLayerMetrics.mViewport;
|
||||
CSSToScreenScale newResolution = mFrameMetrics.CalculateIntrinsicScale();
|
||||
if (previousResolution != newResolution) {
|
||||
if (mFrameMetrics.mViewport.width != aLayerMetrics.mViewport)
|
||||
needContentRepaint = true;
|
||||
mFrameMetrics.mZoom.scale *= newResolution.scale / previousResolution.scale;
|
||||
}
|
||||
mFrameMetrics.mViewport = aLayerMetrics.mViewport;
|
||||
}
|
||||
|
||||
if (aIsFirstPaint || isDefault) {
|
||||
|
Loading…
Reference in New Issue
Block a user