mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Rustfmt components/layout/display_list/
This commit is contained in:
parent
4b3ccc7c8c
commit
ee38fd6f0a
2 changed files with 44 additions and 43 deletions
|
@ -813,10 +813,7 @@ pub fn build_image_border_details(
|
|||
}
|
||||
}
|
||||
|
||||
fn calculate_border_image_outset_side(
|
||||
outset: LengthOrNumber,
|
||||
border_width: Au,
|
||||
) -> Au {
|
||||
fn calculate_border_image_outset_side(outset: LengthOrNumber, border_width: Au) -> Au {
|
||||
match outset {
|
||||
Either::First(length) => length.into(),
|
||||
Either::Second(factor) => border_width.scale_by(factor),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue