summaryrefslogtreecommitdiff
path: root/render/form.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2018-01-05 23:20:21 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2018-01-05 23:20:21 +0000
commit891758bb6f363f10f9a673b167230735a9183244 (patch)
tree6059c45898a74fe06300f73f4cd75b3571fd2c75 /render/form.c
parent7bd1fb50c6415a21fae22f7bd534894e02b512bf (diff)
parent6be6fa1b2197ffe6e511c5eff9abe14d883f8478 (diff)
downloadnetsurf-891758bb6f363f10f9a673b167230735a9183244.tar.gz
netsurf-891758bb6f363f10f9a673b167230735a9183244.tar.bz2
Merge branch 'tlsa/libcss-units'
Diffstat (limited to 'render/form.c')
-rw-r--r--render/form.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/render/form.c b/render/form.c
index 904272d3a..432002564 100644
--- a/render/form.c
+++ b/render/form.c
@@ -1133,6 +1133,7 @@ bool form_open_select_menu(void *client_data,
plot_font_style_t fstyle;
int total_height;
struct form_select_menu *menu;
+ html_content *html = (html_content *)c;
/* if the menu is opened for the first time */
@@ -1153,7 +1154,7 @@ bool form_open_select_menu(void *client_data,
box->border[LEFT].width +
box->padding[RIGHT] + box->padding[LEFT];
- font_plot_style_from_css(control->box->style,
+ font_plot_style_from_css(&html->len_ctx, control->box->style,
&fstyle);
menu->f_size = fstyle.size;