summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Layout/GridFormattingContext.h
diff options
context:
space:
mode:
authormartinfalisse <martinmotteditfalisse@gmail.com>2022-10-30 13:49:47 +0100
committerAndreas Kling <kling@serenityos.org>2022-11-01 11:19:41 +0100
commit937fcfc75c417b37030e47b97050c2a705a174d0 (patch)
treecb1e29fff998e78110bb1d39caf0e3a98f0d012c /Userland/Libraries/LibWeb/Layout/GridFormattingContext.h
parent829f56572dc9a5d5dbacba7711e8b08db2de880c (diff)
downloadserenity-937fcfc75c417b37030e47b97050c2a705a174d0.zip
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.
Diffstat (limited to 'Userland/Libraries/LibWeb/Layout/GridFormattingContext.h')
-rw-r--r--Userland/Libraries/LibWeb/Layout/GridFormattingContext.h2
1 files changed, 2 insertions, 0 deletions
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 {