From 5d2ce68f5363b0d3e4f797b060cbe66d947c6716 Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Wed, 16 Feb 2022 16:06:35 +0000 Subject: LibWeb: Stop treating all SVG elements as inline This fixes hit testing on SVG elements, with no obvious downsides. --- Userland/Libraries/LibWeb/Layout/SVGBox.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/Layout/SVGBox.cpp b/Userland/Libraries/LibWeb/Layout/SVGBox.cpp index 0bd7415a72..6e9b70f714 100644 --- a/Userland/Libraries/LibWeb/Layout/SVGBox.cpp +++ b/Userland/Libraries/LibWeb/Layout/SVGBox.cpp @@ -12,7 +12,6 @@ namespace Web::Layout { SVGBox::SVGBox(DOM::Document& document, SVG::SVGElement& element, NonnullRefPtr style) : BlockContainer(document, &element, move(style)) { - set_inline(true); } void SVGBox::before_children_paint(PaintContext& context, PaintPhase phase) -- cgit v1.2.3