浏览代码

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 年之前
父节点
当前提交
702cee3d7c
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      Userland/Libraries/LibWeb/Layout/SVGBox.cpp
  2. 1 1
      Userland/Libraries/LibWeb/Layout/SVGBox.h

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

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