Update webrender.

This commit is contained in:
Josh Matthews 2020-04-27 14:53:28 -04:00
parent 41367b01bb
commit 8842250033
15 changed files with 83 additions and 69 deletions

View file

@ -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,
))
}
}