Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: c4b8cee85c5b26937632e0c5e26376d5d31435b1
https://github.com/WebKit/WebKit/commit/c4b8cee85c5b26937632e0c5e26376d5d31435b1
Author: Alan Baradlay <[email protected]>
Date: 2026-01-18 (Sun, 18 Jan 2026)
Changed paths:
M Source/WebCore/rendering/RenderBlockFlow.cpp
Log Message:
-----------
[block-in-inline] normalChildNeedsLayout() with no child marked for layout
should not trigger fast path (layoutSimpleBlockContentInInline)
https://bugs.webkit.org/show_bug.cgi?id=305663
Reviewed by Antti Koivisto.
Although renderer->setChildNeedsLayout() is intended to signal that an in-flow
child of this renderer needs layout,
in practice it is used to force a self-layout on this renderer, much like
calling renderer->setNeedsLayout().
(it's usually called by passing in 'MarkOnlyThis'.)
setChildNeedsLayout is heavily used in table layout e.g. after setting
intrinsic padding on the cell renderer.
RenderBlockFlow's layoutSimpleBlockContentInInline is meant to handle content
where the block child itself needs layout and not the container.
Covered by fast/table/table-with-block-in-inline-fast-path.html
* Source/WebCore/rendering/RenderBlockFlow.cpp:
(WebCore::RenderBlockFlow::layoutSimpleBlockContentInInline):
(WebCore::RenderBlockFlow::markInlineContentDirtyForLayout):
Canonical link: https://commits.webkit.org/305775@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications