1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:37:35 +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:
Andreas Kling 2023-04-18 18:56:06 +02:00
parent 0e8ef1b886
commit ec5d5918c4
4 changed files with 15 additions and 0 deletions

View file

@ -5,6 +5,7 @@
*/
#include <LibWeb/Layout/SVGGraphicsBox.h>
#include <LibWeb/Painting/SVGGraphicsPaintable.h>
#include <LibWeb/Painting/StackingContext.h>
namespace Web::Layout {
@ -14,4 +15,9 @@ SVGGraphicsBox::SVGGraphicsBox(DOM::Document& document, SVG::SVGGraphicsElement&
{
}
JS::GCPtr<Painting::Paintable> SVGGraphicsBox::create_paintable() const
{
return Painting::SVGGraphicsPaintable::create(*this);
}
}