Browse Source

LibWeb: Add StyleComponentValueRule::is_token() helper

Hendiadyoin1 3 years ago
parent
commit
3a162d2394
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Userland/Libraries/LibWeb/CSS/Parser/StyleComponentValueRule.h

+ 1 - 0
Userland/Libraries/LibWeb/CSS/Parser/StyleComponentValueRule.h

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