mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Auto merge of #18807 - emilio:ex-calc, r=jdm
style: Fix ex computation with more than one operand. <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18807) <!-- Reviewable:end -->
This commit is contained in:
commit
b1926b4656
4 changed files with 56 additions and 1 deletions
|
@ -373,7 +373,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