Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 08cf53b1b7806bce4c3cfa41629b8ad38bc11c3f
      
https://github.com/WebKit/WebKit/commit/08cf53b1b7806bce4c3cfa41629b8ad38bc11c3f
  Author: Alan Baradlay <[email protected]>
  Date:   2026-10-05 (Mon, 05 Oct 2026)

  Changed paths:
    M Source/WebCore/rendering/RenderBox.cpp

  Log Message:
  -----------
  [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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to