mirror of
https://github.com/servo/servo.git
synced 2025-08-02 04:00:32 +01:00
Add support for background-repeat: space and round
This adds support for more background-repeat modes using the legacy rendering backend.
This commit is contained in:
parent
821797d6f7
commit
68ae97fd0e
14 changed files with 193 additions and 105 deletions
|
@ -427,12 +427,10 @@ impl WebRenderDisplayItemConverter for DisplayItem {
|
|||
if let Some(id) = item.webrender_image.key {
|
||||
if item.stretch_size.width > Au(0) &&
|
||||
item.stretch_size.height > Au(0) {
|
||||
// TODO(gw): Pass through the tile spacing once the other
|
||||
// changes related to this land (parsing etc).
|
||||
builder.push_image(item.base.bounds.to_rectf(),
|
||||
item.base.clip.to_clip_region(frame_builder),
|
||||
item.stretch_size.to_sizef(),
|
||||
Size2D::zero(),
|
||||
item.tile_spacing.to_sizef(),
|
||||
item.image_rendering.to_image_rendering(),
|
||||
id);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue