LibWeb: Make LayoutState::UsedValues::m_node a const pointer

No mutations should ever be made to the layout node through this
pointer (and none were).
This commit is contained in:
Andreas Kling 2025-02-11 13:18:11 +01:00 committed by Andreas Kling
commit 2f5ce0fcb6
Notes: github-actions[bot] 2025-02-11 23:40:53 +00:00

View file

@ -186,7 +186,7 @@ struct LayoutState {
CSSPixels border_top_collapsed() const { return use_collapsing_borders_model() ? round(border_top / 2) : border_top; }
CSSPixels border_bottom_collapsed() const { return use_collapsing_borders_model() ? round(border_bottom / 2) : border_bottom; }
GC::Ptr<Layout::NodeWithStyle> m_node { nullptr };
GC::Ptr<Layout::NodeWithStyle const> m_node { nullptr };
UsedValues const* m_containing_block_used_values { nullptr };
CSSPixels m_content_width { 0 };