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:
parent
e2c5e31292
commit
ca50da63e4
3 changed files with 12 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue