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

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

View file

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