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;
|
||||
}
|
||||
|
||||
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
|
||||
// width into the visual viewport.
|
||||
CSSToScreenScale intrinsicMinScale(
|
||||
float(displaySize.width) /
|
||||
CSSRect::FromAppUnits(
|
||||
scrollableOverflowSize.GetPhysicalSize(writingMode).width));
|
||||
displaySize.width / CSSRect::FromAppUnits(aScrollableOverflow).XMost());
|
||||
|
||||
// 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.
|
||||
|
||||
@@ -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
|
||||
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
|
||||
== bug1913951.html about:blank
|
||||
|
||||
# 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,
|
||||
|
||||
Reference in New Issue
Block a user