LibWeb: Exit parse_font_family_value() when hitting an illegal token

...instead of looping forever. Oops! :^)
This commit is contained in:
Sam Atkins 2023-06-02 20:13:18 +01:00 committed by Andreas Kling
commit c48347f0cb
Notes: sideshowbarker 2024-07-17 10:08:28 +09:00

View file

@ -5962,6 +5962,8 @@ ErrorOr<RefPtr<StyleValue>> Parser::parse_font_family_value(TokenStream<Componen
return nullptr;
continue;
}
return nullptr;
}
if (!current_name_parts.is_empty()) {