Quellcode durchsuchen

LibWeb: Don't panic on unsupported text-decoration-line values

Instead, just log a FIXME message and move on.
Andreas Kling vor 2 Jahren
Ursprung
Commit
767d632ab7
1 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  1. 2 1
      Userland/Libraries/LibWeb/CSS/StyleProperties.cpp

+ 2 - 1
Userland/Libraries/LibWeb/CSS/StyleProperties.cpp

@@ -608,7 +608,8 @@ Vector<CSS::TextDecorationLine> StyleProperties::text_decoration_line() const
     if (value->is_identifier() && value->to_identifier() == ValueID::None)
         return {};
 
-    VERIFY_NOT_REACHED();
+    dbgln("FIXME: Unsupported value for text-decoration-line: {}", value->to_string());
+    return {};
 }
 
 Optional<CSS::TextDecorationStyle> StyleProperties::text_decoration_style() const