mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 03:27:45 +00:00
LibWeb: Add StyleComponentValueRule::is_token() helper
This commit is contained in:
parent
3f8347718c
commit
3a162d2394
1 changed files with 1 additions and 0 deletions
|
@ -45,6 +45,7 @@ public:
|
||||||
return *m_function;
|
return *m_function;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool is_token() const { return m_type == ComponentType::Token; }
|
||||||
bool is(Token::Type type) const
|
bool is(Token::Type type) const
|
||||||
{
|
{
|
||||||
return m_type == ComponentType::Token && m_token.is(type);
|
return m_type == ComponentType::Token && m_token.is(type);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue