LibWeb: Print FIXME instead of crashing if fill is url() in svg text

This commit is contained in:
Aliaksandr Kalenik 2023-07-13 13:55:52 +02:00 committed by Andreas Kling
parent ca50da63e4
commit cf47e130ae
Notes: sideshowbarker 2024-07-16 22:16:50 +09:00

View file

@ -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)