From 974f42f8cf5fd18a86bd5b723a8e81861523fda7 Mon Sep 17 00:00:00 2001 From: Rob Kendrick Date: Sun, 28 Mar 2010 18:33:10 +0000 Subject: 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 --- css/select.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/css/select.c b/css/select.c index be95a29c0..c859f37e3 100644 --- a/css/select.c +++ b/css/select.c @@ -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); -- cgit v1.2.3