diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2022-01-14 12:29:09 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-01-20 00:04:10 +0100 |
commit | 0bb5bda23eaa1b39e2d416e9f27bbf286279b603 (patch) | |
tree | 90109409ab8ab041def0c06d79b268c9b3df1d87 | |
parent | 01b57fa8b7275cba91e476ea6ba3f079514c4ac7 (diff) | |
download | serenity-0bb5bda23eaa1b39e2d416e9f27bbf286279b603.zip |
LibWeb: Alphabetize StyleValue classes
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/StyleValue.h | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/StyleValue.h b/Userland/Libraries/LibWeb/CSS/StyleValue.h index 7ddc949809..0e9598aa88 100644 --- a/Userland/Libraries/LibWeb/CSS/StyleValue.h +++ b/Userland/Libraries/LibWeb/CSS/StyleValue.h @@ -463,37 +463,6 @@ private: 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 { public: static NonnullRefPtr<BackgroundRepeatStyleValue> create(Repeat repeat_x, Repeat repeat_y) @@ -1204,6 +1173,37 @@ private: 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 { public: static NonnullRefPtr<StringStyleValue> create(String const& string) |