@@ -463,37 +463,6 @@ class BackgroundStyleValue final : public StyleValue {
463
463
size_t m_layer_count;
464
464
};
465
465
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
-
497
466
class BackgroundRepeatStyleValue final : public StyleValue {
498
467
public:
499
468
static NonnullRefPtr<BackgroundRepeatStyleValue> create (Repeat repeat_x, Repeat repeat_y)
@@ -1204,6 +1173,37 @@ class OverflowStyleValue final : public StyleValue {
1204
1173
NonnullRefPtr<StyleValue> m_overflow_y;
1205
1174
};
1206
1175
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
+
1207
1207
class StringStyleValue : public StyleValue {
1208
1208
public:
1209
1209
static NonnullRefPtr<StringStyleValue> create (String const & string)
0 commit comments