mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Update app_units to 0.4.1
This commit is contained in:
parent
f05491166f
commit
2230332f46
16 changed files with 39 additions and 40 deletions
|
@ -404,7 +404,7 @@ impl Shaper {
|
|||
if character == ' ' || character == '\u{a0}' {
|
||||
// https://drafts.csswg.org/css-text-3/#word-spacing-property
|
||||
let (length, percent) = options.word_spacing;
|
||||
advance = (advance + length) + Au((advance.0 as f32 * percent.into_inner()) as i32);
|
||||
advance = (advance + length) + Au::new((advance.0 as f32 * percent.into_inner()) as i32);
|
||||
}
|
||||
|
||||
advance
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue