Bug 245901

Summary: Shrink shorthandPropertyUsed and shorthandPropertyAppeared
Product: WebKit Reporter: Oriol Brufau <obrufau>
Component: CSSAssignee: Oriol Brufau <obrufau>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 238888    
Bug Blocks:    

Oriol Brufau
Reported 2022-09-30 15:10:11 PDT
StyleProperties::asTextInternal uses these 2 bitsets of size numCSSProperties. But as the name implies, they are only used for shorthand properties, which since bug 238888 are sorted together. So the bitset size could actually be lastShorthandProperty - firstShorthandProperty + 1. The change would be from 505 to 88 according to https://searchfox.org/wubkat/source/__GENERATED__/WebCore/DerivedSources/CSSPropertyNames.h#525,536-537
Attachments
Oriol Brufau
Comment 1 2022-09-30 15:23:24 PDT
EWS
Comment 2 2022-10-01 08:22:40 PDT
Committed 255059@main (6f687d430ca3): <https://commits.webkit.org/255059@main> Reviewed commits have been landed. Closing PR #4882 and removing active labels.
Radar WebKit Bug Importer
Comment 3 2022-10-01 08:23:17 PDT
Note You need to log in before you can comment on or make changes to this bug.