mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:37:35 +00:00
LibWeb+WebContent: Make document background and Viewport transparent
This means iframes are transparent by default (as in firefox/chrome). Painting the outermost canvas background is moved to the PageHost.
This commit is contained in:
parent
5e7c838160
commit
f2f14ad9bd
5 changed files with 9 additions and 9 deletions
|
@ -55,7 +55,6 @@ void Viewport::build_stacking_context_tree()
|
|||
void Viewport::paint_all_phases(PaintContext& context)
|
||||
{
|
||||
build_stacking_context_tree_if_needed();
|
||||
context.painter().fill_rect(context.enclosing_device_rect(paintable_box()->absolute_rect()).to_type<int>(), document().background_color(context.palette()));
|
||||
context.painter().translate(-context.device_viewport_rect().location().to_type<int>());
|
||||
paintable_box()->stacking_context()->paint(context);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue