1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:17:36 +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

@ -10,27 +10,27 @@
#include <AK/RefCounted.h>
#include <AK/String.h>
#include <AK/Vector.h>
#include <LibWeb/CSS/Parser/StyleComponentValueRule.h>
#include <LibWeb/CSS/Parser/ComponentValue.h>
namespace Web::CSS {
class StyleComponentValueRule;
class ComponentValue;
class StyleFunctionRule : public RefCounted<StyleFunctionRule> {
friend class Parser;
public:
explicit StyleFunctionRule(String name);
StyleFunctionRule(String name, Vector<StyleComponentValueRule>&& values);
StyleFunctionRule(String name, Vector<ComponentValue>&& values);
~StyleFunctionRule();
String const& name() const { return m_name; }
Vector<StyleComponentValueRule> const& values() const { return m_values; }
Vector<ComponentValue> const& values() const { return m_values; }
String to_string() const;
private:
String m_name;
Vector<StyleComponentValueRule> m_values;
Vector<ComponentValue> m_values;
};
}