mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:58:12 +00:00
LibWeb: Print FIXME instead of crashing if fill is url() in svg text
This commit is contained in:
parent
ca50da63e4
commit
cf47e130ae
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue