Bug 258947 - Use composited masking for clip-path which uses an SVG path reference
Summary: Use composited masking for clip-path which uses an SVG path reference
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Compositing (show other bugs)
Version: Safari 16
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Simon Fraser (smfr)
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-07-06 14:34 PDT by Simon Fraser (smfr)
Modified: 2023-07-06 14:44 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Fraser (smfr) 2023-07-06 14:34:48 PDT
For clip-path which references SVG (e.g. `clip-path: url(#foo);`) we currently paint the mask into a masking compositing layer, which is inefficient when we repaint that mask on every frame, as we do on stackoverflow.com.
Comment 1 Radar WebKit Bug Importer 2023-07-06 14:35:06 PDT
<rdar://problem/111870932>
Comment 2 Simon Fraser (smfr) 2023-07-06 14:44:49 PDT
Pull request: https://github.com/WebKit/WebKit/pull/15612