mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
LibWeb: Fix CSS filters painting
restore() corresponding to ApplyFilters should be called after stacking
context content is painted, not before.
Fixes regression introduced in c94b4316e7
This commit is contained in:
parent
f4cc9c6426
commit
86f1c03c06
Notes:
github-actions[bot]
2024-12-01 20:28:19 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: 86f1c03c06
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2692
1 changed files with 2 additions and 1 deletions
|
@ -352,11 +352,12 @@ void StackingContext::paint(PaintContext& context) const
|
|||
}
|
||||
}
|
||||
|
||||
paint_internal(context);
|
||||
|
||||
if (!filter.is_none()) {
|
||||
context.display_list_recorder().restore();
|
||||
}
|
||||
|
||||
paint_internal(context);
|
||||
context.display_list_recorder().pop_stacking_context();
|
||||
if (paintable_box().scroll_frame_id().has_value()) {
|
||||
context.display_list_recorder().pop_scroll_frame_id();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue