1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:17:44 +00:00

LibWeb: Add StyleComponentValueRule::is_token() helper

This commit is contained in:
Hendiadyoin1 2022-03-13 17:46:51 +01:00 committed by Andreas Kling
parent 3f8347718c
commit 3a162d2394

View file

@ -45,6 +45,7 @@ public:
return *m_function;
}
bool is_token() const { return m_type == ComponentType::Token; }
bool is(Token::Type type) const
{
return m_type == ComponentType::Token && m_token.is(type);