Bug 300650

Summary: Cache Headroom on NativeImage
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   

Simon Fraser (smfr)
Reported 2025-10-13 14:22:06 PDT
Profiling shows that each image paint calls `headroom()` twice, and this adds up to about 13% of the time under `RenderImage::paintReplaced()`.
Attachments
Radar WebKit Bug Importer
Comment 1 2025-10-13 14:22:12 PDT
Simon Fraser (smfr)
Comment 2 2025-10-13 14:27:04 PDT
EWS
Comment 3 2025-10-13 23:36:21 PDT
Committed 301459@main (7ae2169425c4): <https://commits.webkit.org/301459@main> Reviewed commits have been landed. Closing PR #52259 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.