mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Make computed types hold Percentage instead of bare CSSFloat
This commit is contained in:
parent
4b633c8637
commit
608e7f71a2
22 changed files with 140 additions and 110 deletions
|
@ -2234,7 +2234,7 @@ impl Fragment {
|
|||
}
|
||||
vertical_align::T::LengthOrPercentage(LengthOrPercentage::Percentage(
|
||||
percentage)) => {
|
||||
offset -= minimum_line_metrics.space_needed().scale_by(percentage)
|
||||
offset -= minimum_line_metrics.space_needed().scale_by(percentage.0)
|
||||
}
|
||||
vertical_align::T::LengthOrPercentage(LengthOrPercentage::Calc(formula)) => {
|
||||
offset -= formula.to_used_value(Some(minimum_line_metrics.space_needed())).unwrap()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue