mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 00:25:12 +00:00
LibWeb: Use float for GridTrackSize length value
Use float instead of int for the GridTrackSize length value as FlexibleLengths can be "1fr" as well as ".49fr" in grid-track-row and grid-track-column values.
This commit is contained in:
committed by
Andreas Kling
parent
ca3d479f6f
commit
2fa124e8d9
@@ -24,7 +24,7 @@ GridTrackSize::GridTrackSize(Percentage percentage)
|
||||
{
|
||||
}
|
||||
|
||||
GridTrackSize::GridTrackSize(int flexible_length)
|
||||
GridTrackSize::GridTrackSize(float flexible_length)
|
||||
: m_type(Type::FlexibleLength)
|
||||
, m_flexible_length(flexible_length)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user