mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:07:47 +00:00
LibWeb: Remove bogus offset when painting an SVG <path> box
This commit is contained in:
parent
684f7cca9f
commit
0bb680bacd
1 changed files with 1 additions and 2 deletions
|
@ -39,8 +39,7 @@ void SVGPathBox::paint(PaintContext& context, PaintPhase phase)
|
||||||
Gfx::AntiAliasingPainter painter { context.painter() };
|
Gfx::AntiAliasingPainter painter { context.painter() };
|
||||||
auto& svg_context = context.svg_context();
|
auto& svg_context = context.svg_context();
|
||||||
|
|
||||||
auto offset = absolute_position() - effective_offset();
|
auto offset = absolute_position();
|
||||||
|
|
||||||
painter.translate(offset);
|
painter.translate(offset);
|
||||||
|
|
||||||
painter.fill_path(
|
painter.fill_path(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue