layout: Fix servo build.

This commit is contained in:
Emilio Cobos Álvarez 2019-05-25 03:55:18 +02:00
parent ac01c76e5e
commit 70635e7815
2 changed files with 2 additions and 2 deletions

View file

@ -159,7 +159,7 @@ fn side_image_width(
total_length: Au,
) -> f32 {
match border_image_width {
BorderImageSideWidth::Length(v) => v.to_used_value(total_length).to_f32_px(),
BorderImageSideWidth::LengthPercentage(v) => v.to_used_value(total_length).to_f32_px(),
BorderImageSideWidth::Number(x) => border_width * x.0,
BorderImageSideWidth::Auto => border_width,
}