mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-01 15:18:06 +00:00
LibWeb/Painting: Fix blending with viewport background
The viewport is now drawn onto transparent black instead of the background color of the viewport.
This commit is contained in:
parent
9973b01848
commit
da09608156
Notes:
github-actions[bot]
2025-04-01 11:38:56 +00:00
Author: https://github.com/skyz1
Commit: da09608156
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4150
31 changed files with 65 additions and 0 deletions
|
@ -8,6 +8,7 @@
|
|||
#include <LibWeb/DOM/Range.h>
|
||||
#include <LibWeb/Layout/TextNode.h>
|
||||
#include <LibWeb/Layout/Viewport.h>
|
||||
#include <LibWeb/Painting/DisplayListRecorder.h>
|
||||
#include <LibWeb/Painting/StackingContext.h>
|
||||
#include <LibWeb/Painting/ViewportPaintable.h>
|
||||
#include <LibWeb/Selection/Selection.h>
|
||||
|
@ -63,7 +64,9 @@ void ViewportPaintable::build_stacking_context_tree()
|
|||
void ViewportPaintable::paint_all_phases(PaintContext& context)
|
||||
{
|
||||
build_stacking_context_tree_if_needed();
|
||||
context.display_list_recorder().save_layer();
|
||||
stacking_context()->paint(context);
|
||||
context.display_list_recorder().restore();
|
||||
}
|
||||
|
||||
void ViewportPaintable::assign_scroll_frames()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue