mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 04:39:06 +00:00
LibWeb/CSS: Replace is_generic_font_family() with a CSS enum
Also add the missing "math" value to it.
This commit is contained in:
parent
6da7a6eab5
commit
0ac133d73b
Notes:
github-actions[bot]
2025-02-06 16:49:09 +00:00
Author: https://github.com/AtkinsSJ
Commit: 0ac133d73b
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3464
Reviewed-by: https://github.com/ADKaster
4 changed files with 14 additions and 20 deletions
|
@ -1504,24 +1504,6 @@ bool Parser::context_allows_quirky_length() const
|
|||
return unitless_length_allowed;
|
||||
}
|
||||
|
||||
bool Parser::is_generic_font_family(Keyword keyword)
|
||||
{
|
||||
switch (keyword) {
|
||||
case Keyword::Cursive:
|
||||
case Keyword::Fantasy:
|
||||
case Keyword::Monospace:
|
||||
case Keyword::Serif:
|
||||
case Keyword::SansSerif:
|
||||
case Keyword::UiMonospace:
|
||||
case Keyword::UiRounded:
|
||||
case Keyword::UiSerif:
|
||||
case Keyword::UiSansSerif:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Vector<ParsedFontFace::Source> Parser::parse_as_font_face_src()
|
||||
{
|
||||
return parse_font_face_src(m_token_stream);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue