mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Fix servo build.
This commit is contained in:
parent
1cb235c81a
commit
6daebcc5df
18 changed files with 210 additions and 170 deletions
|
@ -764,10 +764,12 @@ impl Fragment {
|
|||
get_cyclic(&style.get_background().background_size.0, i).clone();
|
||||
let size = match background_size {
|
||||
BackgroundSize::Explicit { width, height } => Size2D::new(
|
||||
MaybeAuto::from_style(width.0, bounding_box_size.width)
|
||||
.specified_or_default(bounding_box_size.width),
|
||||
MaybeAuto::from_style(height.0, bounding_box_size.height)
|
||||
.specified_or_default(bounding_box_size.height),
|
||||
width
|
||||
.to_used_value(bounding_box_size.width)
|
||||
.unwrap_or(bounding_box_size.width),
|
||||
height
|
||||
.to_used_value(bounding_box_size.height)
|
||||
.unwrap_or(bounding_box_size.height),
|
||||
),
|
||||
_ => bounding_box_size,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue