From 237356c5ca7da908f56c5d446f5dd93a97f9fec4 Mon Sep 17 00:00:00 2001 From: Aliaksandr Kalenik Date: Fri, 13 Jun 2025 17:51:53 +0200 Subject: [PATCH] LibWeb: Return `const&` from `GridSize::length_percentage()` --- Libraries/LibWeb/CSS/GridTrackSize.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/LibWeb/CSS/GridTrackSize.h b/Libraries/LibWeb/CSS/GridTrackSize.h index 32747e9e630..4ca676ad15e 100644 --- a/Libraries/LibWeb/CSS/GridTrackSize.h +++ b/Libraries/LibWeb/CSS/GridTrackSize.h @@ -40,7 +40,7 @@ public: bool is_max_content() const { return m_type == Type::MaxContent; } bool is_min_content() const { return m_type == Type::MinContent; } - LengthPercentage length_percentage() const { return m_value.get(); } + LengthPercentage const& length_percentage() const { return m_value.get(); } double flex_factor() const { return m_value.get().to_fr(); } // https://www.w3.org/TR/css-grid-2/#layout-algorithm