summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/CSS/StyleValue.h
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2021-09-22 12:42:54 +0100
committerAndreas Kling <kling@serenityos.org>2021-09-23 17:47:40 +0200
commit4a1dbb4f36c1289f6af9caaeb9d8d0a29d5d136c (patch)
tree2102736a0efc05bf92086de193d1598a2a9cb0e9 /Userland/Libraries/LibWeb/CSS/StyleValue.h
parenta1bc89b814df123e07e4208d35552bea1a59e75f (diff)
downloadserenity-4a1dbb4f36c1289f6af9caaeb9d8d0a29d5d136c.zip
LibWeb: Move color identifier checking to StyleValue::is_color()
This allows us to perform this check outside of the CSS Parser.
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/StyleValue.h')
-rw-r--r--Userland/Libraries/LibWeb/CSS/StyleValue.h2
1 files changed, 1 insertions, 1 deletions
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; }