mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
Instead of switching on the PropertyID and doing a boatload of comparisons, we reorder the PropertyID enum so that all inherited properties are in two contiguous ranges (one for shorthands, one for longhands). This replaces the switch statement with two simple range checks. Note that the property order change is observable via window.getComputedStyle(), but the order of those properties is implementation defined anyway. Removes a 1.5% item from the profile when loading https://hemnet.se/