summaryrefslogtreecommitdiff
path: root/content/handlers/html/layout_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'content/handlers/html/layout_internal.h')
-rw-r--r--content/handlers/html/layout_internal.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/content/handlers/html/layout_internal.h b/content/handlers/html/layout_internal.h
index 2cbd1ee3c..f4a5401d8 100644
--- a/content/handlers/html/layout_internal.h
+++ b/content/handlers/html/layout_internal.h
@@ -208,21 +208,25 @@ static inline int lh__delta_outer_width(const struct box *b)
lh__non_auto_margin(b, RIGHT);
}
-static inline int lh__delta_outer_main(const struct box *flex)
+static inline int lh__delta_outer_main(
+ const struct box *flex,
+ const struct box *b)
{
if (layout_flex__main_is_horizontal(flex)) {
- return lh__delta_outer_width(flex);
+ return lh__delta_outer_width(b);
} else {
- return lh__delta_outer_height(flex);
+ return lh__delta_outer_height(b);
}
}
-static inline int lh__delta_outer_cross(const struct box *flex)
+static inline int lh__delta_outer_cross(
+ const struct box *flex,
+ const struct box *b)
{
if (layout_flex__main_is_horizontal(flex) == false) {
- return lh__delta_outer_width(flex);
+ return lh__delta_outer_width(b);
} else {
- return lh__delta_outer_height(flex);
+ return lh__delta_outer_height(b);
}
}