LibWeb: Print FIXME instead of crashing if fill is url() in svg text
This commit is contained in:
parent
ca50da63e4
commit
cf47e130ae
Notes:
sideshowbarker
2024-07-16 22:16:50 +09:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/SerenityOS/serenity/commit/cf47e130ae Pull-request: https://github.com/SerenityOS/serenity/pull/19993 Reviewed-by: https://github.com/awesomekling
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())
|
if (!layout_node().computed_values().fill().has_value())
|
||||||
return;
|
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);
|
SVGGraphicsPaintable::paint(context, phase);
|
||||||
|
|
||||||
if (phase != PaintPhase::Foreground)
|
if (phase != PaintPhase::Foreground)
|
||||||
|
|
Loading…
Add table
Reference in a new issue