mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Convert all uses of UpdateResources api to use webrender transactions.
This commit is contained in:
parent
8842250033
commit
eb2f7f7f0a
15 changed files with 109 additions and 39 deletions
|
@ -342,7 +342,9 @@ impl<'a> BuilderForBoxFragment<'a> {
|
|||
// value associated with the bottom-most background image layer.”
|
||||
let layer_index = b.background_image.0.len() - 1;
|
||||
let (bounds, common) = background::painting_area(self, builder, layer_index);
|
||||
builder.wr.push_rect(&common, bounds, rgba(background_color))
|
||||
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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue