mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:37:36 +00:00
LibWeb: Add StyleValue.is_builtin() convenience function
This commit is contained in:
parent
ed962be0fa
commit
81527f5eba
1 changed files with 2 additions and 0 deletions
|
@ -246,6 +246,8 @@ public:
|
|||
bool is_box_shadow() const { return type() == Type::BoxShadow; }
|
||||
bool is_calculated() const { return type() == Type::Calculated; }
|
||||
|
||||
bool is_builtin() const { return is_inherit() || is_initial(); }
|
||||
|
||||
bool is_builtin_or_dynamic() const
|
||||
{
|
||||
return is_inherit() || is_initial() || is_custom_property() || is_calculated();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue