Bug 257353

Summary: Avoid creating an entry in RenderSVGResourceClipper::m_clipperMap if we can do path-only clipping
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: SVGAssignee: Simon Fraser (smfr) <simon.fraser>
Status: RESOLVED FIXED    
Severity: Normal CC: changseok, dino, esprehn+autocc, ews-watchlist, fmalita, glenn, gyuyoung.kim, heycam, kondapallykalyan, pdr, sabouhallawa, schenney, sergio, simon.fraser, webkit-bug-importer, zimmermann
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Simon Fraser (smfr) 2023-05-25 14:41:34 PDT
RenderSVGResourceClipper::applyClippingToContext() unconditionally creates an entry in m_clipperMap, but we only need this cache entry if we're rendering into an image buffer.
Comment 1 Radar WebKit Bug Importer 2023-05-25 14:42:46 PDT
<rdar://problem/109854067>
Comment 2 Simon Fraser (smfr) 2023-05-25 17:02:19 PDT
Created attachment 466502 [details]
Patch
Comment 3 EWS 2023-05-25 21:37:44 PDT
Committed 264557@main (8e6ce4dc41c7): <https://commits.webkit.org/264557@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 466502 [details].