Bug 315179

Summary: Avoid O(n^2) traversal under RenderLayer::insertOnlyThisLayer
Product: WebKit Reporter: Antti Koivisto <koivisto>
Component: Layout and RenderingAssignee: Antti Koivisto <koivisto>
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   

Antti Koivisto
Reported 2026-05-20 03:59:02 PDT
RnderElement::layerNextSibling may end up doing O(n) search. In certain style mutation this can be triggered n times leading to O(n^2) behavior
Attachments
Antti Koivisto
Comment 1 2026-05-20 03:59:26 PDT
Antti Koivisto
Comment 2 2026-05-20 04:07:34 PDT
EWS
Comment 3 2026-05-20 11:33:46 PDT
Committed 313589@main (f6f36fc5f3d6): <https://commits.webkit.org/313589@main> Reviewed commits have been landed. Closing PR #65276 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.