1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 07:47:37 +00:00

LibWeb: Remove on-demand font resolution

Fonts are now resolved as part of the CSS cascade.
This commit is contained in:
Andreas Kling 2021-09-23 19:51:45 +02:00
parent 1ca33598da
commit 785ace4fc2
4 changed files with 3 additions and 166 deletions

View file

@ -704,9 +704,8 @@ void StyleResolver::compute_font(StyleProperties& style, DOM::Element const* ele
break;
}
} else {
// FIXME: Get the root element font.
float root_font_size = 10;
if (element->document().document_element() != element)
root_font_size = element->document().document_element()->layout_node()->font().presentation_size();
Gfx::FontMetrics font_metrics;
if (element && element->parent_element())