mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:47:46 +00:00
LibWeb: Make SVG <g> elements generate a SVGGraphicsPaintable
...instead of defaulting to a PaintableBox. This way it gets the same behavior as other SVG boxes during paint.
This commit is contained in:
parent
0e8ef1b886
commit
ec5d5918c4
4 changed files with 15 additions and 0 deletions
|
@ -9,6 +9,11 @@
|
|||
|
||||
namespace Web::Painting {
|
||||
|
||||
JS::NonnullGCPtr<SVGGraphicsPaintable> SVGGraphicsPaintable::create(Layout::SVGGraphicsBox const& layout_box)
|
||||
{
|
||||
return layout_box.heap().allocate_without_realm<SVGGraphicsPaintable>(layout_box);
|
||||
}
|
||||
|
||||
SVGGraphicsPaintable::SVGGraphicsPaintable(Layout::SVGGraphicsBox const& layout_box)
|
||||
: SVGPaintable(layout_box)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue