Bug 1180267 - Don't set root displayport margins from the mobile viewport manager unless the C++ APZ is enabled. r=botond

This commit is contained in:
Kartikaya Gupta 2015-08-24 13:45:45 -04:00
parent 3ba111921f
commit cdbf335256

View File

@ -273,7 +273,9 @@ MobileViewportManager::RefreshViewportSize(bool aForceAdjustResolution)
MVM_LOG("%p: New zoom is %f\n", this, zoom.scale);
UpdateSPCSPS(displaySize, zoom);
}
UpdateDisplayPortMargins();
if (gfxPlatform::AsyncPanZoomEnabled()) {
UpdateDisplayPortMargins();
}
// Update internal state.
mIsFirstPaint = false;