diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2022-12-16 14:08:27 +0000 |
---|---|---|
committer | Michael Drake <mdrake.unique@gmail.com> | 2022-12-16 14:18:46 +0000 |
commit | f7a0135300ead08731fe10a63891a12cc2dbe067 (patch) | |
tree | 4d6d72ec9474be21d46036284e4065de79830ec9 | |
parent | 73dab84ef8de2f419349aa4c8872704c7ca9122c (diff) | |
download | netsurf-f7a0135300ead08731fe10a63891a12cc2dbe067.tar.gz |
html: layout: flex: Don't freeze already-frozen items
This fixes an error in the used main size tracking.
-rw-r--r-- | content/handlers/html/layout_flex.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/content/handlers/html/layout_flex.c b/content/handlers/html/layout_flex.c index 7c295f14f..61adcaa6c 100644 --- a/content/handlers/html/layout_flex.c +++ b/content/handlers/html/layout_flex.c @@ -780,6 +780,10 @@ static bool layout_flex__resolve_line( for (size_t i = line->first; i < item_count; i++) { struct flex_item_data *item = &ctx->item.data[i]; + if (item->freeze) { + continue; + } + if (total_violation == 0 || (total_violation > 0 && item->min_violation) || (total_violation < 0 && item->max_violation)) { |