1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 18:18:12 +00:00

LibWeb: Use StyleComponentValueRules for StyleBlockRule's values

Noticed while doing this that attribute selectors have two different
ways of saying "starts with", and so AttributeMatchType::StartsWith
needs a better name. But I'll change that when I add the missing
types.

These class names are a mouthful to fit in a commit message. :^)
This commit is contained in:
Sam Atkins 2021-07-01 14:54:27 +01:00 committed by Andreas Kling
parent 89bfde29dc
commit 29d78bba4b
3 changed files with 55 additions and 16 deletions

View file

@ -9,6 +9,7 @@
#include <AK/RefCounted.h>
#include <AK/Vector.h>
#include <LibWeb/CSS/Parser/StyleComponentValueRule.h>
#include <LibWeb/CSS/Parser/Token.h>
namespace Web::CSS {
@ -24,12 +25,12 @@ public:
bool is_paren() const { return m_token.is_open_paren(); }
bool is_square() const { return m_token.is_open_square(); }
Vector<String> const& values() const { return m_values; }
Vector<StyleComponentValueRule> const& values() const { return m_values; }
String to_string() const;
private:
Token m_token;
Vector<String> m_values;
Vector<StyleComponentValueRule> m_values;
};
}