浏览代码

LibWeb: Have DOM nodes start out in "needs style update" state

Otherwise we won't get the first fully styled look until you interact
with the page (e.g via hovering an element.)
Andreas Kling 5 年之前
父节点
当前提交
502b5b76c8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Libraries/LibWeb/DOM/Node.h

+ 1 - 1
Libraries/LibWeb/DOM/Node.h

@@ -137,7 +137,7 @@ protected:
     Document& m_document;
     Document& m_document;
     mutable LayoutNode* m_layout_node { nullptr };
     mutable LayoutNode* m_layout_node { nullptr };
     NodeType m_type { NodeType::INVALID };
     NodeType m_type { NodeType::INVALID };
-    bool m_needs_style_update { false };
+    bool m_needs_style_update { true };
 };
 };
 
 
 template<typename T>
 template<typename T>