summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Layout
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-03-10 22:12:35 +0100
committerAndreas Kling <kling@serenityos.org>2022-03-11 00:21:49 +0100
commit702cee3d7c36570763c5552461b9665f557bf9cc (patch)
tree92e4c2c531c1c94d76c1a3c8b22c0adc99d38f73 /Userland/Libraries/LibWeb/Layout
parent4d98851aead4cc2187a5c41d4407d0f1eaebb734 (diff)
downloadserenity-702cee3d7c36570763c5552461b9665f557bf9cc.zip
LibWeb: Make Layout::SVGBox inherit from Layout::Box
This doesn't need anything from Layout::BlockContainer, so let's not inherit from that.
Diffstat (limited to 'Userland/Libraries/LibWeb/Layout')
-rw-r--r--Userland/Libraries/LibWeb/Layout/SVGBox.cpp2
-rw-r--r--Userland/Libraries/LibWeb/Layout/SVGBox.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/SVGBox.cpp b/Userland/Libraries/LibWeb/Layout/SVGBox.cpp
index 5f30689bce..f3e4562630 100644
--- a/Userland/Libraries/LibWeb/Layout/SVGBox.cpp
+++ b/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))
{
}
diff --git a/Userland/Libraries/LibWeb/Layout/SVGBox.h b/Userland/Libraries/LibWeb/Layout/SVGBox.h
index ff38f9c3bc..30caf476d3 100644
--- a/Userland/Libraries/LibWeb/Layout/SVGBox.h
+++ b/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;