From 937fcfc75c417b37030e47b97050c2a705a174d0 Mon Sep 17 00:00:00 2001 From: martinfalisse Date: Sun, 30 Oct 2022 13:49:47 +0100 Subject: LibWeb+Base: Use line names for positioning grid items When there are grid tracks with line names, use these to resolve line-names passed to positioned grid items. --- Userland/Libraries/LibWeb/Layout/GridFormattingContext.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Userland/Libraries/LibWeb/Layout/GridFormattingContext.h') diff --git a/Userland/Libraries/LibWeb/Layout/GridFormattingContext.h b/Userland/Libraries/LibWeb/Layout/GridFormattingContext.h index 2d43271e68..d38666f398 100644 --- a/Userland/Libraries/LibWeb/Layout/GridFormattingContext.h +++ b/Userland/Libraries/LibWeb/Layout/GridFormattingContext.h @@ -40,6 +40,8 @@ private: float get_free_space_x(Box const&); float get_free_space_y(Box const&); + + int get_line_index_by_line_name(String const& line_name, CSS::GridTrackSizeList); }; class OccupationGrid { -- cgit v1.2.3