LibWeb: Use ApplyFilters command for SVGs

This commit is contained in:
Saksham Mittal
2024-11-22 19:55:07 +05:30
committed by Alexander Kalenik
parent 8562b0e33b
commit ab1cf8f89b

View File

@@ -70,6 +70,8 @@ void SVGSVGPaintable::paint_descendants(PaintContext& context, PaintableBox cons
context.display_list_recorder().apply_opacity(computed_values.opacity());
}
context.display_list_recorder().apply_filters(paintable.computed_values().opacity(), paintable.computed_values().filter());
if (svg_box.has_css_transform()) {
auto transform_matrix = svg_box.transform();
Gfx::FloatPoint transform_origin = svg_box.transform_origin().template to_type<float>();