mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 10:44:56 +00:00
Bug 946172 - [Dialer] Call screen is broken with APZ turned on. r=mbrubeck
This commit is contained in:
parent
ddecae52a4
commit
c780ee4923
@ -14,7 +14,7 @@
|
||||
*/
|
||||
static const mozilla::LayoutDeviceToScreenScale kViewportMinScale(0.0f);
|
||||
static const mozilla::LayoutDeviceToScreenScale kViewportMaxScale(10.0f);
|
||||
static const mozilla::CSSIntSize kViewportMinSize(200, 223);
|
||||
static const mozilla::CSSIntSize kViewportMinSize(200, 40);
|
||||
static const mozilla::CSSIntSize kViewportMaxSize(10000, 10000);
|
||||
static const int32_t kViewportDefaultScreenWidth = 980;
|
||||
|
||||
|
@ -20,10 +20,10 @@
|
||||
tests.push(function test1() {
|
||||
SpecialPowers.pushPrefEnv(scaleRatio(1.0),
|
||||
function() {
|
||||
let info = getViewportInfo(800, 480);
|
||||
let info = getViewportInfo(800, 80);
|
||||
is(info.defaultZoom, 2.5, "initial zoom fits the displayWidth");
|
||||
is(info.width, 320, "width is set explicitly");
|
||||
is(info.height, 223, "height is at the absolute minimum");
|
||||
is(info.height, 40, "height is at the absolute minimum");
|
||||
is(info.autoSize, false, "width=device-width enables autoSize");
|
||||
is(info.allowZoom, true, "zooming is enabled by default");
|
||||
|
||||
@ -40,10 +40,10 @@
|
||||
SpecialPowers.pushPrefEnv(scaleRatio(1.5),
|
||||
function() {
|
||||
// With an explicit width in CSS px, the scaleRatio has no effect.
|
||||
let info = getViewportInfo(800, 480);
|
||||
let info = getViewportInfo(800, 80);
|
||||
is(info.defaultZoom, 2.5, "initial zoom still fits the displayWidth");
|
||||
is(info.width, 320, "width is still set explicitly");
|
||||
is(info.height, 223, "height is still minimum height");
|
||||
is(info.height, 40, "height is still minimum height");
|
||||
|
||||
nextTest();
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user