Bug 261756

Summary: enclosingClippingScopes() can be called twice per layer on compositing updates
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: CompositingAssignee: Simon Fraser (smfr) <simon.fraser>
Status: RESOLVED FIXED    
Severity: Normal CC: simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   

Description Simon Fraser (smfr) 2023-09-19 10:36:30 PDT
enclosingClippingScopes() does an ancestor tree walk, and shows up in profiles on layer-heavy sites. It's called from both layerOverlaps() and addToOverlapMap(), so we can avoid one of those calls.
Comment 1 Radar WebKit Bug Importer 2023-09-19 10:36:53 PDT
<rdar://problem/115734407>
Comment 2 Simon Fraser (smfr) 2023-09-19 10:41:09 PDT
Pull request: https://github.com/WebKit/WebKit/pull/17924
Comment 3 EWS 2023-09-19 21:02:36 PDT
Committed 268176@main (6d84ae083179): <https://commits.webkit.org/268176@main>

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