LibWeb: Avoid unnecessary copies of background size values

This commit is contained in:
Tim Ledbetter 2025-08-01 14:04:54 +01:00 committed by Jelle Raaijmakers
commit c4ceec9296
Notes: github-actions[bot] 2025-08-02 06:52:40 +00:00

View file

@ -13,7 +13,7 @@ namespace Web::CSS {
BackgroundSizeStyleValue::BackgroundSizeStyleValue(LengthPercentage size_x, LengthPercentage size_y)
: StyleValueWithDefaultOperators(Type::BackgroundSize)
, m_properties { .size_x = size_x, .size_y = size_y }
, m_properties { .size_x = move(size_x), .size_y = move(size_y) }
{
}