From 9fb65c709676d5b665ba0bd8aeb706ce28de46ea Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 26 Jul 2008 15:43:41 +0000 Subject: Remove if that was always true. svn path=/trunk/netsurf/; revision=4740 --- css/ruleset.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'css') diff --git a/css/ruleset.c b/css/ruleset.c index ae1d097fa..92686a384 100644 --- a/css/ruleset.c +++ b/css/ruleset.c @@ -661,14 +661,12 @@ int parse_length(struct css_length * const length, return 1; num_length = strspn(v->data, "0123456789+-."); - - if (v->type == CSS_NODE_DIMENSION) { - u = css_unit_parse(v->data + num_length, - v->data_length - num_length); - if (u == CSS_UNIT_UNKNOWN) { - return 1; - } - } + + u = css_unit_parse(v->data + num_length, + v->data_length - num_length); + if (u == CSS_UNIT_UNKNOWN) { + return 1; + } value = atof(v->data); if (non_negative && value < 0) return 1; -- cgit v1.2.3