style: Convert the font-stretch descriptor to use NonNegativePercentage

Depends on D109285

Differential Revision: https://phabricator.services.mozilla.com/D109286
This commit is contained in:
Oriol Brufau 2023-05-16 10:56:02 +02:00
parent 4d4fb4b414
commit 5ef832b778
3 changed files with 7 additions and 28 deletions

View file

@ -194,7 +194,7 @@ impl FontStretchRange {
fn compute_stretch(s: &FontStretch) -> f32 {
match *s {
FontStretch::Keyword(ref kw) => kw.compute().0,
FontStretch::Stretch(ref p) => p.get(),
FontStretch::Stretch(ref p) => p.0.get(),
FontStretch::System(..) => unreachable!(),
}
}