Backed out changeset 70404a86aea8 (bug 1568673) for gv-unit6 failure at org.mozilla.geckoview.test.MediaElementTest.webmFullscreenMedia

This commit is contained in:
Daniel Varga 2019-07-25 05:15:58 +03:00
parent 7041df5d0b
commit 291822d4fb

View File

@ -178,15 +178,6 @@ CSSToScreenScale MobileViewportManager::ClampZoom(
zoom = aViewportInfo.GetMaxZoom();
MVM_LOG("%p: Clamped to %f\n", this, zoom.scale);
}
// Non-positive zoom factors can produce NaN or negative viewport sizes,
// so we better be sure we've got a positive zoom factor. Just for good
// measure, we check our min/max as well as the final clamped value.
MOZ_ASSERT(aViewportInfo.GetMinZoom() > CSSToScreenScale(0.0f),
"zoom factor must be positive");
MOZ_ASSERT(aViewportInfo.GetMaxZoom() > CSSToScreenScale(0.0f),
"zoom factor must be positive");
MOZ_ASSERT(zoom > CSSToScreenScale(0.0f), "zoom factor must be positive");
return zoom;
}