diff options
author | Michael Drake <michael.drake@codethink.co.uk> | 2017-10-02 17:19:17 +0100 |
---|---|---|
committer | Michael Drake <michael.drake@codethink.co.uk> | 2017-10-20 17:46:37 +0100 |
commit | f7f18042bf00b431dbf2c8a93b0a6d7feb44f0d8 (patch) | |
tree | 08874b5a59df7f0ed47eb6eabceaad8b8d24ea66 /render/layout.c | |
parent | 7fa4b3624530f6d66d4e862ad5210fd3d94a3bab (diff) | |
download | netsurf-f7f18042bf00b431dbf2c8a93b0a6d7feb44f0d8.tar.gz netsurf-f7f18042bf00b431dbf2c8a93b0a6d7feb44f0d8.tar.bz2 |
CSS: Wrappers for computed style getters that return unsupported values.
We don't yet handle the Flexbox-related values for certain properties.
Diffstat (limited to 'render/layout.c')
-rw-r--r-- | render/layout.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/render/layout.c b/render/layout.c index 8c3374bcf..7ca688fab 100644 --- a/render/layout.c +++ b/render/layout.c @@ -1110,7 +1110,7 @@ layout_find_dimensions(int available_width, css_fixed value = 0; css_unit unit = CSS_UNIT_PX; - type = css_computed_min_width(style, &value, &unit); + type = ns_computed_min_width(style, &value, &unit); if (type == CSS_MIN_WIDTH_SET) { if (unit == CSS_UNIT_PCT) { @@ -1157,7 +1157,7 @@ layout_find_dimensions(int available_width, css_fixed value = 0; css_unit unit = CSS_UNIT_PX; - type = css_computed_min_height(style, &value, &unit); + type = ns_computed_min_height(style, &value, &unit); if (type == CSS_MIN_HEIGHT_SET) { if (unit == CSS_UNIT_PCT) { @@ -2395,7 +2395,7 @@ static bool layout_apply_minmax_height(struct box *box, struct box *container) } /* min-height */ - if (css_computed_min_height(box->style, &value, &unit) == + if (ns_computed_min_height(box->style, &value, &unit) == CSS_MIN_HEIGHT_SET) { if (unit == CSS_UNIT_PCT) { if (containing_block && |