Bug 259431 - Avoid creating a new CSSParserContext each time a color is assigned to fillStyle/strokeStyle on a canvas context
Summary: Avoid creating a new CSSParserContext each time a color is assigned to fillSt...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Canvas (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Cameron McCormack (:heycam)
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-07-23 13:40 PDT by Cameron McCormack (:heycam)
Modified: 2023-07-23 19:19 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 Cameron McCormack (:heycam) 2023-07-23 13:40:58 PDT
Creating the CSSParserContext is slightly expensive, since it fetches all of the relevant document Settings.
Comment 1 Radar WebKit Bug Importer 2023-07-23 13:41:17 PDT
<rdar://problem/112741540>
Comment 2 Cameron McCormack (:heycam) 2023-07-23 13:41:44 PDT
rdar://112439220
Comment 3 Cameron McCormack (:heycam) 2023-07-23 14:22:39 PDT
Pull request: https://github.com/WebKit/WebKit/pull/16025
Comment 4 EWS 2023-07-23 19:19:54 PDT
Committed 266238@main (5ec234192a2e): <https://commits.webkit.org/266238@main>

Reviewed commits have been landed. Closing PR #16025 and removing active labels.