LibWeb: Add StyleComponentValueRule::is_token() helper

This commit is contained in:
Hendiadyoin1 2022-03-13 17:46:51 +01:00 committed by Andreas Kling
commit 3a162d2394
Notes: sideshowbarker 2024-07-17 17:00:32 +09:00

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);