mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
style: Fix ex computation with more than one operand.
This commit is contained in:
parent
826352ab4c
commit
90ee40f43f
4 changed files with 56 additions and 1 deletions
|
@ -372,7 +372,7 @@ impl CalcNode {
|
|||
ret.em = Some(ret.em.unwrap_or(0.) + em * factor);
|
||||
}
|
||||
FontRelativeLength::Ex(ex) => {
|
||||
ret.ex = Some(ret.em.unwrap_or(0.) + ex * factor);
|
||||
ret.ex = Some(ret.ex.unwrap_or(0.) + ex * factor);
|
||||
}
|
||||
FontRelativeLength::Ch(ch) => {
|
||||
ret.ch = Some(ret.ch.unwrap_or(0.) + ch * factor);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue