mirror of
https://github.com/servo/servo.git
synced 2025-08-11 08:25:32 +01:00
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:
parent
4d4fb4b414
commit
5ef832b778
3 changed files with 7 additions and 28 deletions
|
@ -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!(),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue