LibWeb: Remove default font assignment in NodeWithStyle constructor

It is not needed because font matching algorithms adds fallback font
anyway.
This commit is contained in:
Aliaksandr Kalenik 2023-12-09 17:55:57 +01:00 committed by Andreas Kling
parent ec06c47c06
commit a738c2b120
Notes: sideshowbarker 2024-07-18 08:59:31 +09:00

View File

@ -304,7 +304,6 @@ NodeWithStyle::NodeWithStyle(DOM::Document& document, DOM::Node* node, CSS::Comp
, m_computed_values(move(computed_values))
{
m_has_style = true;
m_font = Platform::FontPlugin::the().default_font();
}
void NodeWithStyle::visit_edges(Visitor& visitor)