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:
parent
4d98851aea
commit
702cee3d7c
2 changed files with 2 additions and 2 deletions
|
@ -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))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue