Bug 252384 - StyleColor should not take more memory than a plain Color when unnecessary
Summary: StyleColor should not take more memory than a plain Color when unnecessary
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-02-16 01:03 PST by Matthieu Dubet
Modified: 2023-02-16 01:04 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthieu Dubet 2023-02-16 01:03:41 PST
StyleColor supports representing arbitrarily complex Web color such as color-mix(color-mix(.....)). In the vast majority of cases though, StyleColor just represents a simple Color object. 

We should optimize this case memory-wise.
Comment 1 Radar WebKit Bug Importer 2023-02-16 01:04:08 PST
<rdar://problem/105537363>