SIGN IN SIGN UP

[cleanup] Read min/max-height directly in RenderBox::computeMinMaxLogicalWidthFromAspectRatio

https://bugs.webkit.org/show_bug.cgi?id=326003
<rdar://problem/188948062>

Reviewed by Antti Koivisto.

computeMinMaxLogicalWidthFromAspectRatio() transfers the box's own definite min-height and max-height to the inline axis through the aspect ratio.
It reads them by calling constrainLogicalHeightByMinMax(), which also resolves min/max-width and transfers it to the block axis,
only for it to come back as the width limits it already is.

Read min-height and max-height directly with computeLogicalHeightUsing() instead and skip that redundant work.

* Source/WebCore/rendering/RenderBox.cpp:
(WebCore::RenderBox::computeMinMaxLogicalWidthFromAspectRatio const):

Canonical link: https://commits.webkit.org/322766@main
A
Alan Baradlay committed
08cf53b1b7806bce4c3cfa41629b8ad38bc11c3f
Parent: f057142