Backed out changeset c1acf137ed79 (bug 1913951) for causing reftest failures @ 1166147.html . CLOSED TREE
This commit is contained in:
@@ -6104,21 +6104,10 @@ void ScrollContainerFrame::UpdateMinimumScaleSize(
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
WritingMode writingMode = GetWritingMode();
|
|
||||||
LogicalRect logicalOverflow(writingMode, aScrollableOverflow, aICBSize);
|
|
||||||
// Do not incorpolate __underflow__ area into the minimum-scale size,
|
|
||||||
// otherwise the size will be bigger than expected.
|
|
||||||
LogicalSize scrollableOverflowSize(
|
|
||||||
writingMode,
|
|
||||||
logicalOverflow.IStart(writingMode) + logicalOverflow.ISize(writingMode),
|
|
||||||
logicalOverflow.BEnd(writingMode) + logicalOverflow.BSize(writingMode));
|
|
||||||
|
|
||||||
// The intrinsic minimum scale is the scale that fits the entire content
|
// The intrinsic minimum scale is the scale that fits the entire content
|
||||||
// width into the visual viewport.
|
// width into the visual viewport.
|
||||||
CSSToScreenScale intrinsicMinScale(
|
CSSToScreenScale intrinsicMinScale(
|
||||||
float(displaySize.width) /
|
displaySize.width / CSSRect::FromAppUnits(aScrollableOverflow).XMost());
|
||||||
CSSRect::FromAppUnits(
|
|
||||||
scrollableOverflowSize.GetPhysicalSize(writingMode).width));
|
|
||||||
|
|
||||||
// The scale used to compute the minimum-scale size is the larger of the
|
// The scale used to compute the minimum-scale size is the larger of the
|
||||||
// intrinsic minimum and the min-scale from the meta viewport tag.
|
// intrinsic minimum and the min-scale from the meta viewport tag.
|
||||||
|
|||||||
@@ -1,22 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html dir="rtl">
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
|
||||||
<meta name="viewport" content="width=device-width">
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<style>
|
|
||||||
.transform {
|
|
||||||
transform:translate(100%);
|
|
||||||
background: red;
|
|
||||||
height:100svh;
|
|
||||||
width: 100vw;
|
|
||||||
position: absolute;
|
|
||||||
top:0;
|
|
||||||
right:0;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</head>
|
|
||||||
<body style="overflow: visible;">
|
|
||||||
<div class="transform"></div>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@@ -41,7 +41,6 @@ pref(ui.useOverlayScrollbars,1) == overflow-hidden-region-with-negative-left-pos
|
|||||||
== min-scale-aspect-ratio.html about:blank
|
== min-scale-aspect-ratio.html about:blank
|
||||||
pref(layout.dynamic-toolbar-max-height,100) == device-height-with-dynamic-toolbar.html device-height-with-dynamic-toolbar-ref.html
|
pref(layout.dynamic-toolbar-max-height,100) == device-height-with-dynamic-toolbar.html device-height-with-dynamic-toolbar-ref.html
|
||||||
== reflow-on-minimum-scale-size.html about:blank
|
== reflow-on-minimum-scale-size.html about:blank
|
||||||
== bug1913951.html about:blank
|
|
||||||
|
|
||||||
# The next two tests (desktop-mode.html and desktop-mode-cleanup.html) must run
|
# The next two tests (desktop-mode.html and desktop-mode-cleanup.html) must run
|
||||||
# consecutively; do not insert anything between them. (As the naming suggests,
|
# consecutively; do not insert anything between them. (As the naming suggests,
|
||||||
|
|||||||
Reference in New Issue
Block a user