Bug 245901
Summary: | Shrink shorthandPropertyUsed and shorthandPropertyAppeared | ||
---|---|---|---|
Product: | WebKit | Reporter: | Oriol Brufau <obrufau> |
Component: | CSS | Assignee: | 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
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Oriol Brufau
Pull request: https://github.com/WebKit/WebKit/pull/4882
EWS
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
<rdar://problem/100655929>