LibWeb: Remove bogus offset when painting an SVG <path> box

This commit is contained in:
Andreas Kling 2021-09-18 00:34:54 +02:00
commit 0bb680bacd
Notes: sideshowbarker 2024-07-18 03:44:34 +09:00

View file

@ -39,8 +39,7 @@ void SVGPathBox::paint(PaintContext& context, PaintPhase phase)
Gfx::AntiAliasingPainter painter { context.painter() };
auto& svg_context = context.svg_context();
auto offset = absolute_position() - effective_offset();
auto offset = absolute_position();
painter.translate(offset);
painter.fill_path(