Ver código fonte

LibWeb: Remove default font assignment in NodeWithStyle constructor

It is not needed because font matching algorithms adds fallback font
anyway.
Aliaksandr Kalenik 1 ano atrás
pai
commit
a738c2b120
1 arquivos alterados com 0 adições e 1 exclusões
  1. 0 1
      Userland/Libraries/LibWeb/Layout/Node.cpp

+ 0 - 1
Userland/Libraries/LibWeb/Layout/Node.cpp

@@ -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)