diff --git a/layout/base/MobileViewportManager.cpp b/layout/base/MobileViewportManager.cpp index a18dd8597ff5..97c70ad677a4 100644 --- a/layout/base/MobileViewportManager.cpp +++ b/layout/base/MobileViewportManager.cpp @@ -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; }