CSS hints: Ensure length and unit are initialised for vertical-align.

This commit is contained in:
Michael Drake 2017-10-02 17:17:28 +01:00
parent 8e6cf1e1d4
commit f64a22c228
1 changed files with 2 additions and 0 deletions

View File

@ -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;