зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1242173 - Typing in input fields does not visually update r=
This commit is contained in:
Родитель
be08af06eb
Коммит
a18b744836
|
@ -2887,6 +2887,7 @@ AsyncPanZoomController::RequestContentRepaint(const FrameMetrics& aFrameMetrics,
|
||||||
aFrameMetrics.GetScrollOffset().x) < EPSILON &&
|
aFrameMetrics.GetScrollOffset().x) < EPSILON &&
|
||||||
fabsf(mLastPaintRequestMetrics.GetScrollOffset().y -
|
fabsf(mLastPaintRequestMetrics.GetScrollOffset().y -
|
||||||
aFrameMetrics.GetScrollOffset().y) < EPSILON &&
|
aFrameMetrics.GetScrollOffset().y) < EPSILON &&
|
||||||
|
aFrameMetrics.GetPresShellResolution() == mLastPaintRequestMetrics.GetPresShellResolution() &&
|
||||||
aFrameMetrics.GetZoom() == mLastPaintRequestMetrics.GetZoom() &&
|
aFrameMetrics.GetZoom() == mLastPaintRequestMetrics.GetZoom() &&
|
||||||
fabsf(aFrameMetrics.GetViewport().width -
|
fabsf(aFrameMetrics.GetViewport().width -
|
||||||
mLastPaintRequestMetrics.GetViewport().width) < EPSILON &&
|
mLastPaintRequestMetrics.GetViewport().width) < EPSILON &&
|
||||||
|
@ -3315,6 +3316,9 @@ void AsyncPanZoomController::NotifyLayersUpdated(const FrameMetrics& aLayerMetri
|
||||||
/ mFrameMetrics.GetCumulativeResolution();
|
/ mFrameMetrics.GetCumulativeResolution();
|
||||||
float presShellResolutionChange = aLayerMetrics.GetPresShellResolution()
|
float presShellResolutionChange = aLayerMetrics.GetPresShellResolution()
|
||||||
/ mFrameMetrics.GetPresShellResolution();
|
/ mFrameMetrics.GetPresShellResolution();
|
||||||
|
if (presShellResolutionChange != 1.0f) {
|
||||||
|
needContentRepaint = true;
|
||||||
|
}
|
||||||
mFrameMetrics.ZoomBy(totalResolutionChange / presShellResolutionChange);
|
mFrameMetrics.ZoomBy(totalResolutionChange / presShellResolutionChange);
|
||||||
} else {
|
} else {
|
||||||
// Take the new zoom as either device scale or composition width or
|
// Take the new zoom as either device scale or composition width or
|
||||||
|
|
Загрузка…
Ссылка в новой задаче