RenderElement::repaintAfterLayoutIfNeeded() shouldn't be consulting selfNeedsLayout() internally; this is confusing (maybe wrong), and repaintAfterLayoutIfNeeded() is called from RenderLayer code where we're outside of layout.
<rdar://problem/118138171>
Pull request: https://github.com/WebKit/WebKit/pull/20188
Committed 270412@main (e6d3796b1e08): <https://commits.webkit.org/270412@main> Reviewed commits have been landed. Closing PR #20188 and removing active labels.