summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/CSS/StyleValues
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/StyleValues')
-rw-r--r--Userland/Libraries/LibWeb/CSS/StyleValues/GridTrackSizeListStyleValue.cpp29
-rw-r--r--Userland/Libraries/LibWeb/CSS/StyleValues/GridTrackSizeListStyleValue.h (renamed from Userland/Libraries/LibWeb/CSS/StyleValues/GridTrackSizeStyleValue.h)12
-rw-r--r--Userland/Libraries/LibWeb/CSS/StyleValues/GridTrackSizeStyleValue.cpp29
3 files changed, 35 insertions, 35 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/StyleValues/GridTrackSizeListStyleValue.cpp b/Userland/Libraries/LibWeb/CSS/StyleValues/GridTrackSizeListStyleValue.cpp
new file mode 100644
index 0000000000..be0cd8962a
--- /dev/null
+++ b/Userland/Libraries/LibWeb/CSS/StyleValues/GridTrackSizeListStyleValue.cpp
@@ -0,0 +1,29 @@
+/*
+ * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
+ * Copyright (c) 2021, Tobias Christiansen <tobyase@serenityos.org>
+ * Copyright (c) 2021-2023, Sam Atkins <atkinssj@serenityos.org>
+ * Copyright (c) 2022-2023, MacDue <macdue@dueutil.tech>
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
+
+#include "GridTrackSizeListStyleValue.h"
+
+namespace Web::CSS {
+
+ErrorOr<String> GridTrackSizeListStyleValue::to_string() const
+{
+ return m_grid_track_size_list.to_string();
+}
+
+ValueComparingNonnullRefPtr<GridTrackSizeListStyleValue> GridTrackSizeListStyleValue::create(CSS::GridTrackSizeList grid_track_size_list)
+{
+ return adopt_ref(*new GridTrackSizeListStyleValue(grid_track_size_list));
+}
+
+ValueComparingNonnullRefPtr<GridTrackSizeListStyleValue> GridTrackSizeListStyleValue::make_auto()
+{
+ return adopt_ref(*new GridTrackSizeListStyleValue(CSS::GridTrackSizeList()));
+}
+
+}
diff --git a/Userland/Libraries/LibWeb/CSS/StyleValues/GridTrackSizeStyleValue.h b/Userland/Libraries/LibWeb/CSS/StyleValues/GridTrackSizeListStyleValue.h
index f73a818878..26ac4c56a1 100644
--- a/Userland/Libraries/LibWeb/CSS/StyleValues/GridTrackSizeStyleValue.h
+++ b/Userland/Libraries/LibWeb/CSS/StyleValues/GridTrackSizeListStyleValue.h
@@ -14,21 +14,21 @@
namespace Web::CSS {
-class GridTrackSizeStyleValue final : public StyleValueWithDefaultOperators<GridTrackSizeStyleValue> {
+class GridTrackSizeListStyleValue final : public StyleValueWithDefaultOperators<GridTrackSizeListStyleValue> {
public:
- static ValueComparingNonnullRefPtr<GridTrackSizeStyleValue> create(CSS::GridTrackSizeList grid_track_size_list);
- virtual ~GridTrackSizeStyleValue() override = default;
+ static ValueComparingNonnullRefPtr<GridTrackSizeListStyleValue> create(CSS::GridTrackSizeList grid_track_size_list);
+ virtual ~GridTrackSizeListStyleValue() override = default;
- static ValueComparingNonnullRefPtr<GridTrackSizeStyleValue> make_auto();
+ static ValueComparingNonnullRefPtr<GridTrackSizeListStyleValue> make_auto();
CSS::GridTrackSizeList grid_track_size_list() const { return m_grid_track_size_list; }
virtual ErrorOr<String> to_string() const override;
- bool properties_equal(GridTrackSizeStyleValue const& other) const { return m_grid_track_size_list == other.m_grid_track_size_list; }
+ bool properties_equal(GridTrackSizeListStyleValue const& other) const { return m_grid_track_size_list == other.m_grid_track_size_list; }
private:
- explicit GridTrackSizeStyleValue(CSS::GridTrackSizeList grid_track_size_list)
+ explicit GridTrackSizeListStyleValue(CSS::GridTrackSizeList grid_track_size_list)
: StyleValueWithDefaultOperators(Type::GridTrackSizeList)
, m_grid_track_size_list(grid_track_size_list)
{
diff --git a/Userland/Libraries/LibWeb/CSS/StyleValues/GridTrackSizeStyleValue.cpp b/Userland/Libraries/LibWeb/CSS/StyleValues/GridTrackSizeStyleValue.cpp
deleted file mode 100644
index 53eec27e0b..0000000000
--- a/Userland/Libraries/LibWeb/CSS/StyleValues/GridTrackSizeStyleValue.cpp
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
- * Copyright (c) 2021, Tobias Christiansen <tobyase@serenityos.org>
- * Copyright (c) 2021-2023, Sam Atkins <atkinssj@serenityos.org>
- * Copyright (c) 2022-2023, MacDue <macdue@dueutil.tech>
- *
- * SPDX-License-Identifier: BSD-2-Clause
- */
-
-#include "GridTrackSizeStyleValue.h"
-
-namespace Web::CSS {
-
-ErrorOr<String> GridTrackSizeStyleValue::to_string() const
-{
- return m_grid_track_size_list.to_string();
-}
-
-ValueComparingNonnullRefPtr<GridTrackSizeStyleValue> GridTrackSizeStyleValue::create(CSS::GridTrackSizeList grid_track_size_list)
-{
- return adopt_ref(*new GridTrackSizeStyleValue(grid_track_size_list));
-}
-
-ValueComparingNonnullRefPtr<GridTrackSizeStyleValue> GridTrackSizeStyleValue::make_auto()
-{
- return adopt_ref(*new GridTrackSizeStyleValue(CSS::GridTrackSizeList()));
-}
-
-}