Fix table border=0.

svn path=/trunk/netsurf/; revision=9544
This commit is contained in:
Michael Drake 2009-09-05 16:23:00 +00:00
parent ca8a2b5af0
commit d8f4c0d029

View File

@ -1608,13 +1608,14 @@ css_error node_presentational_hint(void *pw, void *node,
if (width == NULL)
return CSS_PROPERTY_NOT_SET;
if (is_table_cell) {
hint->data.length.value = INTTOFIX(1);
hint->data.length.unit = CSS_UNIT_PX;
hint->status = CSS_BORDER_WIDTH_WIDTH;
} else if (parse_dimension((const char *) width, false,
if (parse_dimension((const char *) width, false,
&hint->data.length.value,
&hint->data.length.unit)) {
if (is_table_cell &&
INTTOFIX(1) <
hint->data.length.value)
hint->data.length.value = INTTOFIX(1);
hint->data.length.unit = CSS_UNIT_PX;
hint->status = CSS_BORDER_WIDTH_WIDTH;
} else {
xmlFree(width);