mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 14:57:34 +00:00
LibWeb: Apply CSS scaling to SVG elements
Not sure why this was not done before, not now it works easily :^)
This commit is contained in:
parent
cf23a2b82d
commit
d0496ae9b8
5 changed files with 18 additions and 7 deletions
|
@ -30,7 +30,7 @@ void SVGSVGPaintable::before_children_paint(PaintContext& context, PaintPhase ph
|
|||
return;
|
||||
|
||||
if (!context.has_svg_context())
|
||||
context.set_svg_context(SVGContext(absolute_rect().to_type<float>()));
|
||||
context.set_svg_context(SVGContext(absolute_rect()));
|
||||
|
||||
PaintableBox::before_children_paint(context, phase);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue