1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-23 17:45:07 +00:00

LibWeb: Do not crash if "fill: none" is specified for svg text

This commit is contained in:
Aliaksandr Kalenik 2023-07-13 13:41:12 +02:00 committed by Andreas Kling
parent e2c5e31292
commit ca50da63e4
3 changed files with 12 additions and 0 deletions

View file

@ -31,6 +31,9 @@ void SVGTextPaintable::paint(PaintContext& context, PaintPhase phase) const
if (!is_visible())
return;
if (!layout_node().computed_values().fill().has_value())
return;
SVGGraphicsPaintable::paint(context, phase);
if (phase != PaintPhase::Foreground)