1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 12:37:45 +00:00

LibWeb: Rename StyleComponentValueRule -> ComponentValue

"Component value" is the term used in the spec, and it doesn't conflict
 with any other types, so let's use the shorter name. :^)

Also, this doesn't need to be friends with the Parser any more.
This commit is contained in:
Sam Atkins 2022-03-31 11:43:07 +01:00 committed by Andreas Kling
parent 17632c3d2d
commit 8b538b1578
11 changed files with 216 additions and 217 deletions

View file

@ -9,7 +9,7 @@
#include <AK/RefCounted.h>
#include <AK/Vector.h>
#include <LibWeb/CSS/Parser/StyleComponentValueRule.h>
#include <LibWeb/CSS/Parser/ComponentValue.h>
#include <LibWeb/CSS/Parser/Token.h>
namespace Web::CSS {
@ -19,7 +19,7 @@ class StyleBlockRule : public RefCounted<StyleBlockRule> {
public:
StyleBlockRule();
explicit StyleBlockRule(Token token, Vector<StyleComponentValueRule>&& values)
explicit StyleBlockRule(Token token, Vector<ComponentValue>&& values)
: m_token(move(token))
, m_values(move(values))
{
@ -32,12 +32,12 @@ public:
Token const& token() const { return m_token; }
Vector<StyleComponentValueRule> const& values() const { return m_values; }
Vector<ComponentValue> const& values() const { return m_values; }
String to_string() const;
private:
Token m_token;
Vector<StyleComponentValueRule> m_values;
Vector<ComponentValue> m_values;
};
}