Skip to content

Commit 0bb5bda

Browse files
AtkinsSJawesomekling
authored andcommitted
LibWeb: Alphabetize StyleValue classes
1 parent 01b57fa commit 0bb5bda

File tree

1 file changed

+31
-31
lines changed

1 file changed

+31
-31
lines changed

Userland/Libraries/LibWeb/CSS/StyleValue.h

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -463,37 +463,6 @@ class BackgroundStyleValue final : public StyleValue {
463463
size_t m_layer_count;
464464
};
465465

466-
class PositionStyleValue final : public StyleValue {
467-
public:
468-
static NonnullRefPtr<PositionStyleValue> create(PositionEdge edge_x, Length const& offset_x, PositionEdge edge_y, Length const& offset_y)
469-
{
470-
return adopt_ref(*new PositionStyleValue(edge_x, offset_x, edge_y, offset_y));
471-
}
472-
virtual ~PositionStyleValue() override { }
473-
474-
PositionEdge edge_x() const { return m_edge_x; }
475-
Length const& offset_x() const { return m_offset_x; }
476-
PositionEdge edge_y() const { return m_edge_y; }
477-
Length const& offset_y() const { return m_offset_y; }
478-
479-
virtual String to_string() const override;
480-
481-
private:
482-
PositionStyleValue(PositionEdge edge_x, Length const& offset_x, PositionEdge edge_y, Length const& offset_y)
483-
: StyleValue(Type::Position)
484-
, m_edge_x(edge_x)
485-
, m_offset_x(offset_x)
486-
, m_edge_y(edge_y)
487-
, m_offset_y(offset_y)
488-
{
489-
}
490-
491-
PositionEdge m_edge_x;
492-
Length m_offset_x;
493-
PositionEdge m_edge_y;
494-
Length m_offset_y;
495-
};
496-
497466
class BackgroundRepeatStyleValue final : public StyleValue {
498467
public:
499468
static NonnullRefPtr<BackgroundRepeatStyleValue> create(Repeat repeat_x, Repeat repeat_y)
@@ -1204,6 +1173,37 @@ class OverflowStyleValue final : public StyleValue {
12041173
NonnullRefPtr<StyleValue> m_overflow_y;
12051174
};
12061175

1176+
class PositionStyleValue final : public StyleValue {
1177+
public:
1178+
static NonnullRefPtr<PositionStyleValue> create(PositionEdge edge_x, Length const& offset_x, PositionEdge edge_y, Length const& offset_y)
1179+
{
1180+
return adopt_ref(*new PositionStyleValue(edge_x, offset_x, edge_y, offset_y));
1181+
}
1182+
virtual ~PositionStyleValue() override { }
1183+
1184+
PositionEdge edge_x() const { return m_edge_x; }
1185+
Length const& offset_x() const { return m_offset_x; }
1186+
PositionEdge edge_y() const { return m_edge_y; }
1187+
Length const& offset_y() const { return m_offset_y; }
1188+
1189+
virtual String to_string() const override;
1190+
1191+
private:
1192+
PositionStyleValue(PositionEdge edge_x, Length const& offset_x, PositionEdge edge_y, Length const& offset_y)
1193+
: StyleValue(Type::Position)
1194+
, m_edge_x(edge_x)
1195+
, m_offset_x(offset_x)
1196+
, m_edge_y(edge_y)
1197+
, m_offset_y(offset_y)
1198+
{
1199+
}
1200+
1201+
PositionEdge m_edge_x;
1202+
Length m_offset_x;
1203+
PositionEdge m_edge_y;
1204+
Length m_offset_y;
1205+
};
1206+
12071207
class StringStyleValue : public StyleValue {
12081208
public:
12091209
static NonnullRefPtr<StringStyleValue> create(String const& string)

0 commit comments

Comments
 (0)