mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 09:15:35 +00:00
Backed out changeset 70404a86aea8 (bug 1568673) for gv-unit6 failure at org.mozilla.geckoview.test.MediaElementTest.webmFullscreenMedia
This commit is contained in:
parent
7041df5d0b
commit
291822d4fb
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user