mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-13 03:29:49 +00:00
LibWeb: Fill page background with the "base" palette color
This fixes an issue where you'd see black (or ghost) pixels when painting web pages with content smaller than the viewport.
This commit is contained in:
parent
b78a69f7dd
commit
ca4276db77
Notes:
sideshowbarker
2024-07-18 02:13:01 +09:00
Author: https://github.com/awesomekling
Commit: ca4276db77
1 changed files with 1 additions and 0 deletions
|
@ -44,6 +44,7 @@ void InitialContainingBlock::build_stacking_context_tree()
|
|||
|
||||
void InitialContainingBlock::paint_all_phases(PaintContext& context)
|
||||
{
|
||||
context.painter().fill_rect(enclosing_int_rect(absolute_rect()), context.palette().base());
|
||||
context.painter().translate(-context.viewport_rect().location());
|
||||
stacking_context()->paint(context);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue