LibWeb: Add StyleValue.is_builtin() convenience function

This commit is contained in:
Sam Atkins
2021-08-10 12:23:27 +01:00
committed by Andreas Kling
parent ed962be0fa
commit 81527f5eba

View File

@@ -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();