mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-04 09:14:21 +03:00
LibWeb: Skip frozen tracks while distributing space in GFC
This commit is contained in:
parent
a613a0973e
commit
2d05c63c7c
Notes:
sideshowbarker
2024-07-16 23:51:07 +09:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/SerenityOS/serenity/commit/2d05c63c7c Pull-request: https://github.com/SerenityOS/serenity/pull/18867
@ -895,6 +895,9 @@ void GridFormattingContext::distribute_extra_space_across_spanned_tracks(CSSPixe
|
||||
// increase reaches its limit
|
||||
CSSPixels increase_per_track = extra_space / spanned_tracks.size();
|
||||
for (auto& track : spanned_tracks) {
|
||||
if (track.frozen)
|
||||
continue;
|
||||
|
||||
if (increase_per_track >= track.growth_limit) {
|
||||
track.frozen = true;
|
||||
track.item_incurred_increase = track.growth_limit;
|
||||
|
Loading…
Reference in New Issue
Block a user