Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: acbb891ea04ca90cb32b107cfb87e9ae1f3214f4
https://github.com/WebKit/WebKit/commit/acbb891ea04ca90cb32b107cfb87e9ae1f3214f4
Author: Nipun Shukla <[email protected]>
Date: 2026-01-08 (Thu, 08 Jan 2026)
Changed paths:
A
LayoutTests/fast/shapes/shape-outside-floats/shape-outside-invalidation-after-font-load-expected.txt
A
LayoutTests/fast/shapes/shape-outside-floats/shape-outside-invalidation-after-font-load.html
M Source/WebCore/rendering/RenderBox.cpp
M Source/WebCore/rendering/RenderBox.h
Log Message:
-----------
REGRESSION (Safari 26.2): shape-outside initially incorrect when used with
imported font
https://bugs.webkit.org/show_bug.cgi?id=304019
rdar://166336491
Reviewed by Simon Fraser and Alan Baradlay.
When web fonts load after initial layout, CSS shape properties remain unchanged
but box dimensions can change due to different font metrics. The regression
caused
an early return when CSS is identical, preventing shape invalidation.
This issue was fixed by extending the early return condition to check whether
Style::Difference requires a repaint or layout. This ensures shapes are
invalidated when dimension-affecting properties change.
*
LayoutTests/fast/shapes/shape-outside-floats/shape-outside-invalidation-after-font-load-expected.txt:
Added.
*
LayoutTests/fast/shapes/shape-outside-floats/shape-outside-invalidation-after-font-load.html:
Added.
* Source/WebCore/rendering/RenderBox.cpp:
(WebCore::RenderBox::styleDidChange):
(WebCore::RenderBox::updateShapeOutsideInfoAfterStyleChange):
* Source/WebCore/rendering/RenderBox.h:
Canonical link: https://commits.webkit.org/305299@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications