Bug 264434

Summary: Move the selfNeedsLayout() check out of RenderElement::repaintAfterLayoutIfNeeded()
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: Layout and RenderingAssignee: Simon Fraser (smfr) <simon.fraser>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Simon Fraser (smfr) 2023-11-08 13:55:56 PST
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.
Comment 1 Radar WebKit Bug Importer 2023-11-08 13:56:51 PST
<rdar://problem/118138171>
Comment 2 Simon Fraser (smfr) 2023-11-08 14:01:30 PST
Pull request: https://github.com/WebKit/WebKit/pull/20188
Comment 3 EWS 2023-11-08 16:21:57 PST
Committed 270412@main (e6d3796b1e08): <https://commits.webkit.org/270412@main>

Reviewed commits have been landed. Closing PR #20188 and removing active labels.