Fix Servo build.

This commit is contained in:
Emilio Cobos Álvarez 2018-05-28 16:00:00 +02:00
parent f4cff20649
commit bbb59614fa
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
3 changed files with 16 additions and 14 deletions

View file

@ -916,9 +916,9 @@ impl FragmentDisplayListBuilding for 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, bounding_box_size.width)
MaybeAuto::from_style(width.0, bounding_box_size.width)
.specified_or_default(bounding_box_size.width),
MaybeAuto::from_style(height, bounding_box_size.height)
MaybeAuto::from_style(height.0, bounding_box_size.height)
.specified_or_default(bounding_box_size.height),
),
_ => bounding_box_size,