소스 검색

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

Aliaksandr Kalenik 2 년 전
부모
커밋
cf47e130ae
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      Userland/Libraries/LibWeb/Painting/SVGTextPaintable.cpp

+ 5 - 0
Userland/Libraries/LibWeb/Painting/SVGTextPaintable.cpp

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