summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Layout
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-03-12 14:13:25 +0100
committerAndreas Kling <kling@serenityos.org>2022-03-13 00:04:51 +0100
commitaa969cc591e85fe7cc8c7f88dbe2a4f291b246db (patch)
tree7814356082891d78b97bfe189b61752bf595e9f0 /Userland/Libraries/LibWeb/Layout
parente4eb6d4f1f36ed5905ee2f5e75e0fb7468fa70eb (diff)
downloadserenity-aa969cc591e85fe7cc8c7f88dbe2a4f291b246db.zip
LibWeb: Make Layout::SVGBox a BlockContainer again
This wasn't worth the headache of trying to make SVG boxes work together with BFC right now. Let's just make it a block container once again, and have its corresponding SVGPaintable inherit from PaintableWithLines. We'll have to revisit this as SVG support improves.
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 d5d63b084d..81e480473b 100644
--- a/Userland/Libraries/LibWeb/Layout/SVGBox.cpp
+++ b/Userland/Libraries/LibWeb/Layout/SVGBox.cpp
@@ -9,7 +9,7 @@
namespace Web::Layout {
SVGBox::SVGBox(DOM::Document& document, SVG::SVGElement& element, NonnullRefPtr<CSS::StyleProperties> style)
- : Box(document, &element, move(style))
+ : BlockContainer(document, &element, move(style))
{
}
diff --git a/Userland/Libraries/LibWeb/Layout/SVGBox.h b/Userland/Libraries/LibWeb/Layout/SVGBox.h
index 30caf476d3..ff38f9c3bc 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 Box {
+class SVGBox : public BlockContainer {
public:
SVGBox(DOM::Document&, SVG::SVGElement&, NonnullRefPtr<CSS::StyleProperties>);
virtual ~SVGBox() override = default;