Bug 252384

Summary: StyleColor should not take more memory than a plain Color when unnecessary
Product: WebKit Reporter: Matthieu Dubet <m_dubet>
Component: WebCore Misc.Assignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

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>