mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-12 02:59:45 +00:00
LibWeb/CSS: Parse font-display descriptor
This commit is contained in:
parent
19cb3d4c81
commit
3eb6d510fd
Notes:
github-actions[bot]
2024-09-28 12:43:50 +00:00
Author: https://github.com/AtkinsSJ
Commit: 3eb6d510fd
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1554
7 changed files with 39 additions and 4 deletions
|
@ -388,7 +388,7 @@ void FontFace::load_font_source()
|
|||
auto& style_computer = const_cast<StyleComputer&>(window.document()->style_computer());
|
||||
|
||||
// FIXME: The ParsedFontFace is kind of expensive to create. We should be using a shared sub-object for the data
|
||||
ParsedFontFace parsed_font_face { font->m_family, font->m_weight.to_number<int>(), 0 /* FIXME: slope */, font->m_urls, font->m_unicode_ranges, /* FIXME: ascent_override */ {}, /* FIXME: descent_override */ {}, /* FIXME: line_gap_override */ {} };
|
||||
ParsedFontFace parsed_font_face { font->m_family, font->m_weight.to_number<int>(), 0 /* FIXME: slope */, font->m_urls, font->m_unicode_ranges, /* FIXME: ascent_override */ {}, /* FIXME: descent_override */ {}, /* FIXME: line_gap_override */ {}, /* FIXME: font_display */ FontDisplay::Auto };
|
||||
if (auto loader = style_computer.load_font_face(parsed_font_face, move(on_load), move(on_error)); loader.has_value())
|
||||
loader->start_loading_next_url();
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue