LibWeb: Add a constant for the number of longhand properties

We use this in multiple places (and will in more places in the future)
so it's worth having as a constant from a clarity point of view
This commit is contained in:
Callum Law 2025-08-24 14:26:17 +12:00 committed by Jelle Raaijmakers
commit fba4187c8f
Notes: github-actions[bot] 2025-08-26 10:19:56 +00:00
4 changed files with 4 additions and 4 deletions

View file

@ -128,7 +128,7 @@ size_t CSSStyleProperties::length() const
if (is_computed()) {
if (!owner_node().has_value())
return 0;
return to_underlying(last_longhand_property_id) - to_underlying(first_longhand_property_id) + 1;
return number_of_longhand_properties;
}
return m_properties.size();