mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:07:35 +00:00
LibWeb: Rename flexible_length to flex_factor in GridSize
Let's match the name used in the spec.
This commit is contained in:
parent
a3759b6e76
commit
95d17ee875
3 changed files with 11 additions and 11 deletions
|
@ -14,10 +14,10 @@ GridSize::GridSize(LengthPercentage length_percentage)
|
|||
: m_type(Type::LengthPercentage)
|
||||
, m_length_percentage(length_percentage) {};
|
||||
|
||||
GridSize::GridSize(float flexible_length)
|
||||
GridSize::GridSize(float flex_factor)
|
||||
: m_type(Type::FlexibleLength)
|
||||
, m_length_percentage { Length::make_px(0) }
|
||||
, m_flexible_length(flexible_length)
|
||||
, m_flex_factor(flex_factor)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -60,7 +60,7 @@ ErrorOr<String> GridSize::to_string() const
|
|||
case Type::LengthPercentage:
|
||||
return m_length_percentage.to_string();
|
||||
case Type::FlexibleLength:
|
||||
return String::formatted("{}fr", m_flexible_length);
|
||||
return String::formatted("{}fr", m_flex_factor);
|
||||
case Type::MaxContent:
|
||||
return "max-content"_string;
|
||||
case Type::MinContent:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue