diff options
author | Michael Drake <michael.drake@codethink.co.uk> | 2017-10-02 17:17:28 +0100 |
---|---|---|
committer | Michael Drake <michael.drake@codethink.co.uk> | 2017-10-13 10:28:42 +0100 |
commit | f64a22c228e4fc58c1d0b287fa8fe633db79dca6 (patch) | |
tree | 1bed6a98b48b18f814495963cafe03327f48eb7f /content/handlers/css/hints.c | |
parent | 8e6cf1e1d40f3f6ae4cebb8d101fc10b6a8abc71 (diff) | |
download | netsurf-f64a22c228e4fc58c1d0b287fa8fe633db79dca6.tar.gz netsurf-f64a22c228e4fc58c1d0b287fa8fe633db79dca6.tar.bz2 |
CSS hints: Ensure length and unit are initialised for vertical-align.
Diffstat (limited to 'content/handlers/css/hints.c')
-rw-r--r-- | content/handlers/css/hints.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/content/handlers/css/hints.c b/content/handlers/css/hints.c index 08fe438c1..3a15f8e08 100644 --- a/content/handlers/css/hints.c +++ b/content/handlers/css/hints.c @@ -748,6 +748,8 @@ static void css_hint_vertical_align_table_cells( corestring_dom_valign, &attr); if (err == DOM_NO_ERR && attr != NULL) { + hint->data.length.value = 0; + hint->data.length.unit = CSS_UNIT_PX; if (dom_string_caseless_lwc_isequal(attr, corestring_lwc_top)) { hint->prop = CSS_PROP_VERTICAL_ALIGN; |