html: layout: flex: Minor code style change

This commit is contained in:
Michael Drake 2022-11-19 17:30:25 +00:00 committed by Michael Drake
parent 43d5ce44ac
commit b07bda787c
1 changed files with 3 additions and 6 deletions

View File

@ -187,19 +187,16 @@ static bool layout_flex_item(
switch (b->type) {
case BOX_BLOCK:
success = layout_block_context(b, -1,
ctx->content);
success = layout_block_context(b, -1, ctx->content);
break;
case BOX_TABLE:
b->float_container = b->parent;
success = layout_table(b, available_width,
ctx->content);
success = layout_table(b, available_width, ctx->content);
b->float_container = NULL;
break;
case BOX_FLEX:
b->float_container = b->parent;
success = layout_flex(b, available_width,
ctx->content);
success = layout_flex(b, available_width, ctx->content);
b->float_container = NULL;
break;
default: