mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Update webrender.
This commit is contained in:
parent
41367b01bb
commit
8842250033
15 changed files with 83 additions and 69 deletions
|
@ -341,8 +341,8 @@ impl<'a> BuilderForBoxFragment<'a> {
|
|||
// “The background color is clipped according to the background-clip
|
||||
// value associated with the bottom-most background image layer.”
|
||||
let layer_index = b.background_image.0.len() - 1;
|
||||
let (_, common) = background::painting_area(self, builder, layer_index);
|
||||
builder.wr.push_rect(&common, rgba(background_color))
|
||||
let (bounds, common) = background::painting_area(self, builder, layer_index);
|
||||
builder.wr.push_rect(&common, bounds, rgba(background_color))
|
||||
}
|
||||
// Reverse because the property is top layer first, we want to paint bottom layer first.
|
||||
for (index, image) in b.background_image.0.iter().enumerate().rev() {
|
||||
|
@ -595,7 +595,6 @@ fn clip_for_radii(
|
|||
radii,
|
||||
mode: wr::ClipMode::Clip,
|
||||
}),
|
||||
None,
|
||||
))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue