mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Allow individual layers to render their own background color
Instead of relying on a scene-wide background color, all layers can now have their own background color.
This commit is contained in:
parent
d168501555
commit
fbd0b6f9d0
4 changed files with 57 additions and 55 deletions
|
@ -952,10 +952,6 @@ impl<Window: WindowMethods> IOCompositor<Window> {
|
|||
// Render the scene.
|
||||
match self.scene.root {
|
||||
Some(ref layer) => {
|
||||
self.scene.background_color.r = layer.extra_data.borrow().background_color.r;
|
||||
self.scene.background_color.g = layer.extra_data.borrow().background_color.g;
|
||||
self.scene.background_color.b = layer.extra_data.borrow().background_color.b;
|
||||
self.scene.background_color.a = layer.extra_data.borrow().background_color.a;
|
||||
rendergl::render_scene(layer.clone(), self.context, &self.scene);
|
||||
}
|
||||
None => {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue