mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 08:57:34 +00:00
LibWeb: Alphabetize StyleValue classes
This commit is contained in:
parent
01b57fa8b7
commit
0bb5bda23e
1 changed files with 31 additions and 31 deletions
|
@ -463,37 +463,6 @@ private:
|
||||||
size_t m_layer_count;
|
size_t m_layer_count;
|
||||||
};
|
};
|
||||||
|
|
||||||
class PositionStyleValue final : public StyleValue {
|
|
||||||
public:
|
|
||||||
static NonnullRefPtr<PositionStyleValue> create(PositionEdge edge_x, Length const& offset_x, PositionEdge edge_y, Length const& offset_y)
|
|
||||||
{
|
|
||||||
return adopt_ref(*new PositionStyleValue(edge_x, offset_x, edge_y, offset_y));
|
|
||||||
}
|
|
||||||
virtual ~PositionStyleValue() override { }
|
|
||||||
|
|
||||||
PositionEdge edge_x() const { return m_edge_x; }
|
|
||||||
Length const& offset_x() const { return m_offset_x; }
|
|
||||||
PositionEdge edge_y() const { return m_edge_y; }
|
|
||||||
Length const& offset_y() const { return m_offset_y; }
|
|
||||||
|
|
||||||
virtual String to_string() const override;
|
|
||||||
|
|
||||||
private:
|
|
||||||
PositionStyleValue(PositionEdge edge_x, Length const& offset_x, PositionEdge edge_y, Length const& offset_y)
|
|
||||||
: StyleValue(Type::Position)
|
|
||||||
, m_edge_x(edge_x)
|
|
||||||
, m_offset_x(offset_x)
|
|
||||||
, m_edge_y(edge_y)
|
|
||||||
, m_offset_y(offset_y)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
PositionEdge m_edge_x;
|
|
||||||
Length m_offset_x;
|
|
||||||
PositionEdge m_edge_y;
|
|
||||||
Length m_offset_y;
|
|
||||||
};
|
|
||||||
|
|
||||||
class BackgroundRepeatStyleValue final : public StyleValue {
|
class BackgroundRepeatStyleValue final : public StyleValue {
|
||||||
public:
|
public:
|
||||||
static NonnullRefPtr<BackgroundRepeatStyleValue> create(Repeat repeat_x, Repeat repeat_y)
|
static NonnullRefPtr<BackgroundRepeatStyleValue> create(Repeat repeat_x, Repeat repeat_y)
|
||||||
|
@ -1204,6 +1173,37 @@ private:
|
||||||
NonnullRefPtr<StyleValue> m_overflow_y;
|
NonnullRefPtr<StyleValue> m_overflow_y;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
class PositionStyleValue final : public StyleValue {
|
||||||
|
public:
|
||||||
|
static NonnullRefPtr<PositionStyleValue> create(PositionEdge edge_x, Length const& offset_x, PositionEdge edge_y, Length const& offset_y)
|
||||||
|
{
|
||||||
|
return adopt_ref(*new PositionStyleValue(edge_x, offset_x, edge_y, offset_y));
|
||||||
|
}
|
||||||
|
virtual ~PositionStyleValue() override { }
|
||||||
|
|
||||||
|
PositionEdge edge_x() const { return m_edge_x; }
|
||||||
|
Length const& offset_x() const { return m_offset_x; }
|
||||||
|
PositionEdge edge_y() const { return m_edge_y; }
|
||||||
|
Length const& offset_y() const { return m_offset_y; }
|
||||||
|
|
||||||
|
virtual String to_string() const override;
|
||||||
|
|
||||||
|
private:
|
||||||
|
PositionStyleValue(PositionEdge edge_x, Length const& offset_x, PositionEdge edge_y, Length const& offset_y)
|
||||||
|
: StyleValue(Type::Position)
|
||||||
|
, m_edge_x(edge_x)
|
||||||
|
, m_offset_x(offset_x)
|
||||||
|
, m_edge_y(edge_y)
|
||||||
|
, m_offset_y(offset_y)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
PositionEdge m_edge_x;
|
||||||
|
Length m_offset_x;
|
||||||
|
PositionEdge m_edge_y;
|
||||||
|
Length m_offset_y;
|
||||||
|
};
|
||||||
|
|
||||||
class StringStyleValue : public StyleValue {
|
class StringStyleValue : public StyleValue {
|
||||||
public:
|
public:
|
||||||
static NonnullRefPtr<StringStyleValue> create(String const& string)
|
static NonnullRefPtr<StringStyleValue> create(String const& string)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue