mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:47:34 +00:00
LibWeb: Move color identifier checking to StyleValue::is_color()
This allows us to perform this check outside of the CSS Parser.
This commit is contained in:
parent
a1bc89b814
commit
4a1dbb4f36
3 changed files with 76 additions and 73 deletions
|
@ -261,7 +261,7 @@ public:
|
|||
bool is_inherit() const { return type() == Type::Inherit; }
|
||||
bool is_initial() const { return type() == Type::Initial; }
|
||||
bool is_unset() const { return type() == Type::Unset; }
|
||||
bool is_color() const { return type() == Type::Color; }
|
||||
bool is_color() const;
|
||||
bool is_identifier() const { return type() == Type::Identifier || is_auto(); }
|
||||
bool is_image() const { return type() == Type::Image; }
|
||||
bool is_string() const { return type() == Type::String; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue