From 4a1dbb4f36c1289f6af9caaeb9d8d0a29d5d136c Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Wed, 22 Sep 2021 12:42:54 +0100 Subject: LibWeb: Move color identifier checking to StyleValue::is_color() This allows us to perform this check outside of the CSS Parser. --- Userland/Libraries/LibWeb/CSS/StyleValue.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Userland/Libraries/LibWeb/CSS/StyleValue.h') diff --git a/Userland/Libraries/LibWeb/CSS/StyleValue.h b/Userland/Libraries/LibWeb/CSS/StyleValue.h index 367d1f8111..537b72a774 100644 --- a/Userland/Libraries/LibWeb/CSS/StyleValue.h +++ b/Userland/Libraries/LibWeb/CSS/StyleValue.h @@ -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; } -- cgit v1.2.3