Bug 243957

Summary: Use iterative algorithm for resetStyleForNonRenderedDescendants
Product: WebKit Reporter: Miguel Salinas <miguel_salinas>
Component: Layout and RenderingAssignee: Miguel Salinas <miguel_salinas>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   

Description Miguel Salinas 2022-08-15 14:55:23 PDT
WebCore::Style::resetStyleForNonRenderedDescendants is currently recursive and can stack overflow on very deep DOM trees. We should rewrite this to be iterative to avoid crashing.
Comment 1 Radar WebKit Bug Importer 2022-08-16 15:42:48 PDT
<rdar://problem/98752283>
Comment 2 Miguel Salinas 2022-08-16 15:58:27 PDT
Pull request: https://github.com/WebKit/WebKit/pull/3384
Comment 3 Miguel Salinas 2022-08-16 16:08:22 PDT
Pull request: https://github.com/WebKit/WebKit/pull/3385
Comment 4 EWS 2022-08-26 13:22:11 PDT
Committed 253837@main (9a78fa7ef78b): <https://commits.webkit.org/253837@main>

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