Browse Source

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

This doesn't need anything from Layout::BlockContainer, so let's not
inherit from that.
Andreas Kling 3 năm trước cách đây
mục cha
commit
702cee3d7c

+ 1 - 1
Userland/Libraries/LibWeb/Layout/SVGBox.cpp

@@ -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))
 {
 {
 }
 }
 
 

+ 1 - 1
Userland/Libraries/LibWeb/Layout/SVGBox.h

@@ -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;