mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
LibWeb: Add StyleValue.is_builtin() convenience function
This commit is contained in:
parent
ed962be0fa
commit
81527f5eba
Notes:
sideshowbarker
2024-07-18 06:59:25 +09:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/SerenityOS/serenity/commit/81527f5eba1 Pull-request: https://github.com/SerenityOS/serenity/pull/9301 Reviewed-by: https://github.com/TobyAsE
@ -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…
Reference in New Issue
Block a user