summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2022-12-16 14:08:27 +0000
committerMichael Drake <mdrake.unique@gmail.com>2022-12-16 14:18:46 +0000
commitf7a0135300ead08731fe10a63891a12cc2dbe067 (patch)
tree4d6d72ec9474be21d46036284e4065de79830ec9 /content
parent73dab84ef8de2f419349aa4c8872704c7ca9122c (diff)
downloadnetsurf-f7a0135300ead08731fe10a63891a12cc2dbe067.tar.gz
netsurf-f7a0135300ead08731fe10a63891a12cc2dbe067.tar.bz2
html: layout: flex: Don't freeze already-frozen items
This fixes an error in the used main size tracking.
Diffstat (limited to 'content')
-rw-r--r--content/handlers/html/layout_flex.c4
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)) {