Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: bd8721b5d09d4fb5f600b4adb81c7ac6e1240591
https://github.com/WebKit/WebKit/commit/bd8721b5d09d4fb5f600b4adb81c7ac6e1240591
Author: Yulun Wu <[email protected]>
Date: 2025-05-09 (Fri, 09 May 2025)
Changed paths:
A LayoutTests/fast/css/max-content-img-sizing-1-expected.html
A LayoutTests/fast/css/max-content-img-sizing-1.html
A LayoutTests/fast/css/max-content-img-sizing-2-expected.html
A LayoutTests/fast/css/max-content-img-sizing-2.html
M Source/WebCore/rendering/RenderReplaced.cpp
M Source/WebCore/rendering/RenderReplaced.h
Log Message:
-----------
Fix percent/calculated logical widths for RenderReplaced items with fixed
logical heights and intrinsic aspect ratio.
https://bugs.webkit.org/show_bug.cgi?id=292568
<rdar://146172341>
Reviewed by Alan Baradlay.
RenderReplaced::computePreferredLogicalWidths() now uses aspect ratio adjusted
widths
when fixed height/min-height/max-height is specified. This ensures that
intrinsic width
calculations keep the aspect ratio of RenderReplaced elements when vertical
constraints
are present.
Combined changes:
* LayoutTests/fast/css/max-content-max-height-img-sizing-expected.html: Added.
* LayoutTests/fast/css/max-content-max-height-img-sizing.html: Added.
* Source/WebCore/rendering/RenderReplaced.cpp:
* Source/WebCore/rendering/RenderReplaced.h:
Canonical link: https://commits.webkit.org/294735@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes