Backed out changeset c1acf137ed79 (bug 1913951) for causing reftest failures @ 1166147.html . CLOSED TREE

This commit is contained in:
Alexandru Marc
2024-11-14 11:15:01 +02:00
parent b8b9222ec2
commit e5fac45584
3 changed files with 1 additions and 35 deletions

View File

@@ -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.