1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-03 07:18:11 +00:00

LibWeb: Make Layout::SVGBox inherit from Layout::Box

This doesn't need anything from Layout::BlockContainer, so let's not
inherit from that.
This commit is contained in:
Andreas Kling 2022-03-10 22:12:35 +01:00
parent 4d98851aea
commit 702cee3d7c
2 changed files with 2 additions and 2 deletions

View file

@ -11,7 +11,7 @@
namespace Web::Layout { namespace Web::Layout {
SVGBox::SVGBox(DOM::Document& document, SVG::SVGElement& element, NonnullRefPtr<CSS::StyleProperties> style) SVGBox::SVGBox(DOM::Document& document, SVG::SVGElement& element, NonnullRefPtr<CSS::StyleProperties> style)
: BlockContainer(document, &element, move(style)) : Box(document, &element, move(style))
{ {
} }

View file

@ -12,7 +12,7 @@
namespace Web::Layout { namespace Web::Layout {
class SVGBox : public BlockContainer { class SVGBox : public Box {
public: public:
SVGBox(DOM::Document&, SVG::SVGElement&, NonnullRefPtr<CSS::StyleProperties>); SVGBox(DOM::Document&, SVG::SVGElement&, NonnullRefPtr<CSS::StyleProperties>);
virtual ~SVGBox() override = default; virtual ~SVGBox() override = default;