mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:27:35 +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:
parent
88aca4c996
commit
d5aca1c6c4
4 changed files with 26 additions and 6 deletions
|
@ -20,6 +20,8 @@ public:
|
|||
|
||||
protected:
|
||||
SVGPaintable(Layout::SVGBox const&);
|
||||
|
||||
virtual Gfx::FloatRect compute_absolute_rect() const override;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue