mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
LibWeb: Add StyleValue.is_builtin() convenience function
This commit is contained in:
committed by
Andreas Kling
parent
ed962be0fa
commit
81527f5eba
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user