mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-20 09:49:15 +03: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:
parent
ec06c47c06
commit
a738c2b120
Notes:
sideshowbarker
2024-07-18 08:59:31 +09:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/SerenityOS/serenity/commit/a738c2b120 Pull-request: https://github.com/SerenityOS/serenity/pull/22227
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user