diff options
author | martinfalisse <martinmotteditfalisse@gmail.com> | 2022-10-30 13:27:57 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-11-01 11:19:41 +0100 |
commit | b2b677e9842775346d66a2697b29cfa96f11fdb0 (patch) | |
tree | 3cfeffb2b531abe67a80e8ef1ab8f4b73ddfe1a1 /Userland/Libraries/LibCodeComprehension/Cpp/Tests.h | |
parent | 9441515312c47187815ad2c8d23f1ded8026394a (diff) | |
download | serenity-b2b677e9842775346d66a2697b29cfa96f11fdb0.zip |
LibWeb: Refactor GridTrackSize classes
Refactor various classes in the GridTrackSize file for the incoming
named_tracks feature.
Previously the ExplicitTrackSizing had mixed responsiblities with the
newly-named GridRepeat class. This made it so it was not possible to
have multiple repeats within a single 'GridTrackSizeList' definition.
The MetaGridTrackSize class had both the responsibilities of being a
container for minmax values as well as for simple GridSizes. By uniting
the different possible values (repeat, minmax, default) into the
ExplicitGridTrack class are able to be more expressive as to the
different grid size modalities.
The GridTrackSizeList will be useful as compared to a
Vector<ExplicitGridTrack> since this way can keep track of the declared
line names. These same line names are able to be declared within the
values of a repeat function, hence the presence of a GridTrackSizeList
inside the GridRepeat class.
Diffstat (limited to 'Userland/Libraries/LibCodeComprehension/Cpp/Tests.h')
0 files changed, 0 insertions, 0 deletions