Bug 257353 - Avoid creating an entry in RenderSVGResourceClipper::m_clipperMap if we can do path-only clipping
Summary: Avoid creating an entry in RenderSVGResourceClipper::m_clipperMap if we can d...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Simon Fraser (smfr)
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-05-25 14:41 PDT by Simon Fraser (smfr)
Modified: 2023-05-25 21:37 PDT (History)
16 users (show)

See Also:


Attachments
Patch (3.07 KB, patch)
2023-05-25 17:02 PDT, Simon Fraser (smfr)
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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].