From 86be8abfbf45a8f3c55d90ba4922b0b76fdb888d Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Wed, 9 Apr 2025 12:24:11 +0100 Subject: [PATCH] LibWeb/CSS: Const-correct ComputedProperties::set_computed_font_list() This shouldn't be const, and that means the two members don't have to be mutable. --- Libraries/LibWeb/CSS/ComputedProperties.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Libraries/LibWeb/CSS/ComputedProperties.h b/Libraries/LibWeb/CSS/ComputedProperties.h index 12df10cc3c9..abb692fb021 100644 --- a/Libraries/LibWeb/CSS/ComputedProperties.h +++ b/Libraries/LibWeb/CSS/ComputedProperties.h @@ -198,7 +198,7 @@ public: return *m_first_available_computed_font; } - void set_computed_font_list(NonnullRefPtr font_list) const + void set_computed_font_list(NonnullRefPtr font_list) { m_font_list = move(font_list); // https://drafts.csswg.org/css-fonts/#first-available-font @@ -251,8 +251,8 @@ private: HashMap> m_animated_property_values; int m_math_depth { InitialValues::math_depth() }; - mutable RefPtr m_font_list; - mutable RefPtr m_first_available_computed_font; + RefPtr m_font_list; + RefPtr m_first_available_computed_font; Optional m_line_height;