summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2022-02-16 16:06:35 +0000
committerAndreas Kling <kling@serenityos.org>2022-02-16 21:47:53 +0100
commit5d2ce68f5363b0d3e4f797b060cbe66d947c6716 (patch)
tree26c7e01e45799950fdc1d1fe125f0c594122b4a6
parentaba8774c9c34a890f1fb421bd3766d40827cc3ae (diff)
downloadserenity-5d2ce68f5363b0d3e4f797b060cbe66d947c6716.zip
LibWeb: Stop treating all SVG elements as inline
This fixes hit testing on SVG elements, with no obvious downsides.
-rw-r--r--Userland/Libraries/LibWeb/Layout/SVGBox.cpp1
1 files changed, 0 insertions, 1 deletions
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<CSS::StyleProperties> style)
: BlockContainer(document, &element, move(style))
{
- set_inline(true);
}
void SVGBox::before_children_paint(PaintContext& context, PaintPhase phase)