LibWeb: Return const& from GridSize::length_percentage()

This commit is contained in:
Aliaksandr Kalenik 2025-06-13 17:51:53 +02:00 committed by Alexander Kalenik
commit 237356c5ca
Notes: github-actions[bot] 2025-06-13 17:58:09 +00:00

View file

@ -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>(); }
LengthPercentage const& length_percentage() const { return m_value.get<LengthPercentage>(); }
double flex_factor() const { return m_value.get<Flex>().to_fr(); }
// https://www.w3.org/TR/css-grid-2/#layout-algorithm