-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cherry-pick 5ec2341. rdar://problem/112439220
Cherry-pick 266238@main (5ec2341). rdar://112439220 Avoid creating a new CSSParserContext each time a color is assigned to fillStyle/strokeStyle on a canvas context https://bugs.webkit.org/show_bug.cgi?id=259431 rdar://112439220 Reviewed by Tim Nguyen. Creating the CSSParserContext is slightly expensive, since it fetches all of the relevant document Settings. * Source/WebCore/html/HTMLCanvasElement.h: (WebCore::HTMLCanvasElement::cssParserContext): * Source/WebCore/html/canvas/CanvasStyle.cpp: (WebCore::parseColor): Canonical link: https://commits.webkit.org/266238@main Identifier: 265870.287@safari-7616.1.27.13-branch
- Loading branch information
Showing
2 changed files
with
11 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters