mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Don’t paint a zero-size background image
This commit is contained in:
parent
c73dc885bb
commit
6e78cdf0ed
1 changed files with 4 additions and 0 deletions
|
@ -409,6 +409,10 @@ impl<'a> BuilderForBoxFragment<'a> {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if tile_size.width == 0.0 || tile_size.height == 0.0 {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// FIXME: background-repeat
|
// FIXME: background-repeat
|
||||||
let tile_spacing = units::LayoutSize::zero();
|
let tile_spacing = units::LayoutSize::zero();
|
||||||
let tile_stride = tile_size + tile_spacing;
|
let tile_stride = tile_size + tile_spacing;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue