Only obey size property on input elements that are either text or password. Fixes submit buttons with size properties being too small/large.

svn path=/trunk/netsurf/; revision=10191
This commit is contained in:
Rob Kendrick 2010-03-28 18:33:10 +00:00
parent 66d1418506
commit 974f42f8cf

View File

@ -1474,6 +1474,10 @@ css_error node_presentational_hint(void *pw, void *node,
strcasecmp((const char *) type,
"password") == 0)
hint->data.length.unit = CSS_UNIT_EX;
else {
xmlFree(type);
return CSS_PROPERTY_NOT_SET;
}
if (type != NULL)
xmlFree(type);