mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:17:36 +00:00
LibWeb: Use String class in certain CSS Grid classes
Converts the remaining instances of DeprecatedString to String in the CSS Grid classes.
This commit is contained in:
parent
aec2dadfdd
commit
9d99bd8258
7 changed files with 38 additions and 26 deletions
|
@ -6,7 +6,6 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <AK/DeprecatedString.h>
|
||||
#include <AK/String.h>
|
||||
|
||||
namespace Web::CSS {
|
||||
|
@ -19,9 +18,9 @@ public:
|
|||
Auto
|
||||
};
|
||||
|
||||
GridTrackPlacement(DeprecatedString line_name, int span_count_or_position, bool has_span = false);
|
||||
GridTrackPlacement(String line_name, int span_count_or_position, bool has_span = false);
|
||||
GridTrackPlacement(int span_count_or_position, bool has_span = false);
|
||||
GridTrackPlacement(DeprecatedString line_name, bool has_span = false);
|
||||
GridTrackPlacement(String line_name, bool has_span = false);
|
||||
GridTrackPlacement();
|
||||
|
||||
static GridTrackPlacement make_auto() { return GridTrackPlacement(); };
|
||||
|
@ -35,7 +34,7 @@ public:
|
|||
|
||||
int raw_value() const { return m_span_count_or_position; }
|
||||
Type type() const { return m_type; }
|
||||
DeprecatedString line_name() const { return m_line_name; }
|
||||
String line_name() const { return m_line_name; }
|
||||
|
||||
ErrorOr<String> to_string() const;
|
||||
bool operator==(GridTrackPlacement const& other) const
|
||||
|
@ -46,7 +45,7 @@ public:
|
|||
private:
|
||||
Type m_type;
|
||||
int m_span_count_or_position { 0 };
|
||||
DeprecatedString m_line_name;
|
||||
String m_line_name;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue