LibWeb+LibGfx: Implement Canvas2D filters

This commit is contained in:
Lucien Fiorini 2024-12-18 12:26:37 +01:00 committed by Alexander Kalenik
commit a6ef6550f3
Notes: github-actions[bot] 2024-12-18 17:55:41 +00:00
10 changed files with 136 additions and 31 deletions

View file

@ -481,7 +481,7 @@ void TinyVGDecodedImageData::draw(Painter& painter) const
command.fill->visit(
[&](Color color) { painter.fill_path(fill_path, color, WindingRule::EvenOdd); },
[&](NonnullRefPtr<SVGGradientPaintStyle> const& style) {
painter.fill_path(fill_path, style, 1.0f, WindingRule::EvenOdd);
painter.fill_path(fill_path, style, {}, 1.0f, WindingRule::EvenOdd);
});
}
@ -489,7 +489,7 @@ void TinyVGDecodedImageData::draw(Painter& painter) const
command.stroke->visit(
[&](Color color) { painter.stroke_path(draw_path, color, command.stroke_width); },
[&](NonnullRefPtr<SVGGradientPaintStyle> const& style) {
painter.stroke_path(draw_path, style, command.stroke_width, 1.0f);
painter.stroke_path(draw_path, style, {}, command.stroke_width, 1.0f);
});
}
}