From 502b5b76c8b7570f4c1f6c29c40cc84ca245642f Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 13 Jun 2020 20:10:43 +0200 Subject: [PATCH] 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.) --- Libraries/LibWeb/DOM/Node.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/LibWeb/DOM/Node.h b/Libraries/LibWeb/DOM/Node.h index ce1f9e23e0..c342d1dc80 100644 --- a/Libraries/LibWeb/DOM/Node.h +++ b/Libraries/LibWeb/DOM/Node.h @@ -137,7 +137,7 @@ protected: Document& m_document; mutable LayoutNode* m_layout_node { nullptr }; NodeType m_type { NodeType::INVALID }; - bool m_needs_style_update { false }; + bool m_needs_style_update { true }; }; template