mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-22 06:21:45 +03:00
calc(): layout: minmax block: Use new css width getter API
This commit is contained in:
parent
09b076c141
commit
052550c667
@ -1036,11 +1036,11 @@ static void layout_minmax_block(
|
|||||||
enum css_min_width_e min_type;
|
enum css_min_width_e min_type;
|
||||||
css_unit unit = CSS_UNIT_PX;
|
css_unit unit = CSS_UNIT_PX;
|
||||||
css_fixed value = 0;
|
css_fixed value = 0;
|
||||||
|
int width;
|
||||||
|
|
||||||
if (wtype == CSS_WIDTH_SET && wunit != CSS_UNIT_PCT) {
|
if (css_computed_width(block->style, &content->unit_len_ctx,
|
||||||
min = max = FIXTOINT(
|
-1, &width) == CSS_WIDTH_SET) {
|
||||||
css_unit_len2device_px(block->style,
|
min = max = width;
|
||||||
&content->unit_len_ctx, width, wunit));
|
|
||||||
using_max_border_box = border_box;
|
using_max_border_box = border_box;
|
||||||
using_min_border_box = border_box;
|
using_min_border_box = border_box;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user