1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 18:17:45 +00:00

LibWeb: Treate SVG paintable coordinates as relative to <svg> element

Normally, paintable coordinates are relative to the nearest containing
block, but in the SVG case, since <svg> doesn't form a containing block,
we have to specialize the computation of SVGPaintable::absolute_rect().
This commit is contained in:
Andreas Kling 2022-03-24 16:06:43 +01:00
parent 88aca4c996
commit d5aca1c6c4
4 changed files with 26 additions and 6 deletions

View file

@ -20,6 +20,8 @@ public:
protected:
SVGPaintable(Layout::SVGBox const&);
virtual Gfx::FloatRect compute_absolute_rect() const override;
};
}