Bug 303076

Summary: Stop using std::call_once() in SVGElement constructors
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: SVGAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: sabouhallawa, webkit-bug-importer, zimmermann
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Chris Dumez
Reported 2025-11-24 20:50:13 PST
Stop using std::call_once() in SVGElement constructors and use a simple static boolean variable instead. We do not need thread safety here as SVGElements are always used on the main thread so there is no need to pay the cost of locking.
Attachments
Chris Dumez
Comment 1 2025-11-24 20:51:59 PST
EWS
Comment 2 2025-11-24 22:55:52 PST
Committed 303522@main (2acc7d2f8e00): <https://commits.webkit.org/303522@main> Reviewed commits have been landed. Closing PR #54432 and removing active labels.
Radar WebKit Bug Importer
Comment 3 2025-11-24 22:56:14 PST
Note You need to log in before you can comment on or make changes to this bug.