mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
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:
committed by
Jelle Raaijmakers
parent
58431603ca
commit
fba4187c8f
Notes:
github-actions[bot]
2025-08-26 10:19:56 +00:00
Author: https://github.com/Calme1709 Commit: https://github.com/LadybirdBrowser/ladybird/commit/fba4187c8f9 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5984 Reviewed-by: https://github.com/awesomekling Reviewed-by: https://github.com/gmta ✅
@@ -300,6 +300,7 @@ constexpr PropertyID first_inherited_longhand_property_id = PropertyID::@first_i
|
||||
constexpr PropertyID last_inherited_longhand_property_id = PropertyID::@last_inherited_longhand_property_id@;
|
||||
constexpr PropertyID first_longhand_property_id = PropertyID::@first_longhand_property_id@;
|
||||
constexpr PropertyID last_longhand_property_id = PropertyID::@last_longhand_property_id@;
|
||||
constexpr size_t number_of_longhand_properties = to_underlying(last_longhand_property_id) - to_underlying(first_longhand_property_id) + 1;
|
||||
|
||||
enum class Quirk {
|
||||
// https://quirks.spec.whatwg.org/#the-hashless-hex-color-quirk
|
||||
|
||||
Reference in New Issue
Block a user