summaryrefslogtreecommitdiff
path: root/Libraries
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-06-13 20:10:43 +0200
committerAndreas Kling <kling@serenityos.org>2020-06-13 20:10:43 +0200
commit502b5b76c8b7570f4c1f6c29c40cc84ca245642f (patch)
tree43d64d19368b9b1263f3057d2413704470ad75cf /Libraries
parent0e65fc3a6dcdfc30607bdd4244ad5dc0342bf82e (diff)
downloadserenity-502b5b76c8b7570f4c1f6c29c40cc84ca245642f.zip
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.)
Diffstat (limited to 'Libraries')
-rw-r--r--Libraries/LibWeb/DOM/Node.h2
1 files changed, 1 insertions, 1 deletions
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<typename T>