From 702cee3d7c36570763c5552461b9665f557bf9cc Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 10 Mar 2022 22:12:35 +0100 Subject: LibWeb: Make Layout::SVGBox inherit from Layout::Box This doesn't need anything from Layout::BlockContainer, so let's not inherit from that. --- Userland/Libraries/LibWeb/Layout/SVGBox.cpp | 2 +- Userland/Libraries/LibWeb/Layout/SVGBox.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'Userland/Libraries/LibWeb/Layout') 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 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); virtual ~SVGBox() override = default; -- cgit v1.2.3