Lazy layout actually can be slower than normal layout when invoked both on a child and its container at the same time, it invokes 2 or more layouts (or the number of children that layout is queried on + the container). It can be reduced to 1 layout per container at least. I think the code that could be optimized is: ``` if (context->renderer() && context->renderer()->style().skippedContentReason().has_value()) context->renderer()->setNeedsLayout(); ```
<rdar://problem/117149809>
Pull request: https://github.com/WebKit/WebKit/pull/19710
Committed 274490@main (58d4460957a8): <https://commits.webkit.org/274490@main> Reviewed commits have been landed. Closing PR #19710 and removing active labels.