Bug 1518584 - Simplify some comparisons involving the layout viewport. r=kats

Depends on D15973

Differential Revision: https://phabricator.services.mozilla.com/D15974

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Botond Ballo 2019-01-09 15:35:13 +00:00
Родитель 8e0fca04b3
Коммит 0a180e8805
1 изменённых файлов: 2 добавлений и 4 удалений

Просмотреть файл

@ -4306,10 +4306,8 @@ void AsyncPanZoomController::NotifyLayersUpdated(
entertainViewportUpdates = true;
#endif
if (entertainViewportUpdates) {
if (Metrics().GetLayoutViewport().Width() !=
aLayerMetrics.GetLayoutViewport().Width() ||
Metrics().GetLayoutViewport().Height() !=
aLayerMetrics.GetLayoutViewport().Height()) {
if (Metrics().GetLayoutViewport().Size() !=
aLayerMetrics.GetLayoutViewport().Size()) {
needContentRepaint = true;
viewportUpdated = true;
}