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:
parent
1ca33598da
commit
785ace4fc2
4 changed files with 3 additions and 166 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue