Fix for percentage values.
svn path=/trunk/netsurf/; revision=9546
This commit is contained in:
parent
3dd906c813
commit
cd07aa9d31
|
@ -1612,9 +1612,11 @@ css_error node_presentational_hint(void *pw, void *node,
|
|||
&hint->data.length.value,
|
||||
&hint->data.length.unit)) {
|
||||
if (is_table_cell &&
|
||||
INTTOFIX(1) <
|
||||
hint->data.length.value)
|
||||
INTTOFIX(0) !=
|
||||
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);
|
||||
|
|
Loading…
Reference in New Issue