simonwuelker · GitHub

@simonwuelker

Merged

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

@simonwuelker

mrobinson

@simonwuelker

@simonwuelker

niyabits pushed a commit to niyabits/servo that referenced this pull request

Jun 11, 2026
…45496)
Addresses concerns raised in
servo#45308 (comment).
Computing the font features first means more work if there is a matching
cache entry. That work should be negligible, and in the common case
(when no `font-variant` properties are set to non-default values) then
there's nothing to do.
This reduces the size of `ShapeCacheEntry` by 8 bytes immediately and
avoids increasing it by another 16 bytes due to
servo#45308.
Testing: No behaviour change intended, coverd by existing tests
Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

Read the original on github.com ↗