mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibWeb: Add StyleComponentValueRule::is_token() helper
This commit is contained in:
parent
3f8347718c
commit
3a162d2394
Notes:
sideshowbarker
2024-07-17 17:00:32 +09:00
Author: https://github.com/Hendiadyoin1
Commit: 3a162d2394
Pull-request: https://github.com/SerenityOS/serenity/pull/13030
Reviewed-by: https://github.com/AtkinsSJ ✅
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue