mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 02:29:21 +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:
parent
17632c3d2d
commit
8b538b1578
Notes:
sideshowbarker
2024-07-17 14:17:47 +09:00
Author: https://github.com/AtkinsSJ
Commit: 8b538b1578
Pull-request: https://github.com/SerenityOS/serenity/pull/13407
Reviewed-by: https://github.com/trflynn89
11 changed files with 216 additions and 217 deletions
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue