From 53f3ed026ac2e6495a4039a0d439b8d30be9d1d1 Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Thu, 7 Sep 2023 15:11:09 +0100 Subject: [PATCH] LibWeb: Mark CalculatedStyleValue::resolve_integer() as const --- .../Libraries/LibWeb/CSS/StyleValues/CalculatedStyleValue.cpp | 2 +- .../Libraries/LibWeb/CSS/StyleValues/CalculatedStyleValue.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibWeb/CSS/StyleValues/CalculatedStyleValue.cpp b/Userland/Libraries/LibWeb/CSS/StyleValues/CalculatedStyleValue.cpp index 09f3793a6f..e09329a9c5 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 5e88c5ca2a..989efd85be 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;