diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2022-12-14 17:30:27 +0000 |
---|---|---|
committer | Michael Drake <mdrake.unique@gmail.com> | 2022-12-14 22:53:35 +0000 |
commit | 25acf1a5dd778aa82a828a2138bf33af20fb81dc (patch) | |
tree | 3d534f5e4e50b3e948ef901c1f5b2b8d4db306cb | |
parent | 73ce30325f60310b2bce69b181a1d4f61399a33c (diff) | |
download | netsurf-25acf1a5dd778aa82a828a2138bf33af20fb81dc.tar.gz netsurf-25acf1a5dd778aa82a828a2138bf33af20fb81dc.tar.bz2 |
html: layout: flex: Rename indirected box w/h functions
-rw-r--r-- | content/handlers/html/layout_flex.c | 8 | ||||
-rw-r--r-- | content/handlers/html/layout_internal.h | 4 |
2 files changed, 7 insertions, 5 deletions
diff --git a/content/handlers/html/layout_flex.c b/content/handlers/html/layout_flex.c index 40e10632b..65f770ffa 100644 --- a/content/handlers/html/layout_flex.c +++ b/content/handlers/html/layout_flex.c @@ -773,8 +773,10 @@ static bool layout_flex__place_line_items_main( int *box_size_main; int *box_size_cross; - box_size_main = lh__box_size_main(ctx->horizontal, b); - box_size_cross = lh__box_size_cross(ctx->horizontal, b); + box_size_main = lh__box_size_main_ptr( + ctx->horizontal, b); + box_size_cross = lh__box_size_cross_ptr( + ctx->horizontal, b); main_pos += *box_size_main + lh__delta_outer_main( ctx->flex, b); @@ -854,7 +856,7 @@ static void layout_flex__place_line_items_cross(struct flex_ctx *ctx, int *box_pos_cross; box_pos_cross = ctx->horizontal ? &b->y : &b->x; - box_size_cross = lh__box_size_cross(ctx->horizontal, b); + box_size_cross = lh__box_size_cross_ptr(ctx->horizontal, b); cross_free_space = line->cross_size + extra - *box_size_cross - lh__delta_outer_cross(ctx->flex, b); diff --git a/content/handlers/html/layout_internal.h b/content/handlers/html/layout_internal.h index c6eb56d6e..736778933 100644 --- a/content/handlers/html/layout_internal.h +++ b/content/handlers/html/layout_internal.h @@ -244,14 +244,14 @@ static inline int lh__delta_outer_cross( } } -static inline int *lh__box_size_main( +static inline int *lh__box_size_main_ptr( bool horizontal, struct box *b) { return horizontal ? &b->width : &b->height; } -static inline int *lh__box_size_cross( +static inline int *lh__box_size_cross_ptr( bool horizontal, struct box *b) { |