mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 12:05:07 +00:00
LibWeb: Replace is_inherited_property() with generated code
We already include the inheritance for each property in Properties.json, so made sense to use that instead of a list in StyleResolver. Added `inherited: true` to a couple of properties to match the previous code's behavior. One of those had a FIXME which I've moved to the JSON file, which is hacky, but it works.
This commit is contained in:
parent
ea2b02186c
commit
0fba71a655
5 changed files with 36 additions and 36 deletions
|
@ -71,6 +71,7 @@ enum class PropertyID {
|
|||
|
||||
PropertyID property_id_from_string(const StringView&);
|
||||
const char* string_from_property_id(PropertyID);
|
||||
bool is_inherited_property(PropertyID);
|
||||
bool is_pseudo_property(PropertyID);
|
||||
|
||||
} // namespace Web::CSS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue