diff --git a/Userland/Libraries/LibWeb/CSS/StyleValues/CalculatedStyleValue.cpp b/Userland/Libraries/LibWeb/CSS/StyleValues/CalculatedStyleValue.cpp index 09f3793a6f1..e09329a9c58 100644 --- a/Userland/Libraries/LibWeb/CSS/StyleValues/CalculatedStyleValue.cpp +++ b/Userland/Libraries/LibWeb/CSS/StyleValues/CalculatedStyleValue.cpp @@ -2392,7 +2392,7 @@ Optional CalculatedStyleValue::resolve_number() const return {}; } -Optional CalculatedStyleValue::resolve_integer() +Optional CalculatedStyleValue::resolve_integer() const { auto result = m_calculation->resolve({}, {}); if (result.value().has()) diff --git a/Userland/Libraries/LibWeb/CSS/StyleValues/CalculatedStyleValue.h b/Userland/Libraries/LibWeb/CSS/StyleValues/CalculatedStyleValue.h index 5e88c5ca2ab..989efd85be3 100644 --- a/Userland/Libraries/LibWeb/CSS/StyleValues/CalculatedStyleValue.h +++ b/Userland/Libraries/LibWeb/CSS/StyleValues/CalculatedStyleValue.h @@ -102,7 +102,7 @@ public: bool resolves_to_number() const { return m_resolved_type.matches_number(); } bool resolves_to_number_percentage() const { return m_resolved_type.matches_number_percentage(); } Optional resolve_number() const; - Optional resolve_integer(); + Optional resolve_integer() const; bool contains_percentage() const;