From cf47e130ae2e82af25c14eb3a526720a6932c3ad Mon Sep 17 00:00:00 2001 From: Aliaksandr Kalenik Date: Thu, 13 Jul 2023 13:55:52 +0200 Subject: [PATCH] LibWeb: Print FIXME instead of crashing if fill is url() in svg text --- Userland/Libraries/LibWeb/Painting/SVGTextPaintable.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Userland/Libraries/LibWeb/Painting/SVGTextPaintable.cpp b/Userland/Libraries/LibWeb/Painting/SVGTextPaintable.cpp index 48a2a2cd36..262ce2a295 100644 --- a/Userland/Libraries/LibWeb/Painting/SVGTextPaintable.cpp +++ b/Userland/Libraries/LibWeb/Painting/SVGTextPaintable.cpp @@ -34,6 +34,11 @@ void SVGTextPaintable::paint(PaintContext& context, PaintPhase phase) const if (!layout_node().computed_values().fill().has_value()) return; + if (layout_node().computed_values().fill()->is_url()) { + dbgln("FIXME: Using url() as fill is not supported for svg text"); + return; + } + SVGGraphicsPaintable::paint(context, phase); if (phase != PaintPhase::Foreground)