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:
Aliaksandr Kalenik 2024-12-01 20:45:47 +01:00 committed by Alexander Kalenik
commit 86f1c03c06
Notes: github-actions[bot] 2024-12-01 20:28:19 +00:00

View file

@ -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();