[project @ 2004-06-25 20:24:06 by bursa]
Fix parsing of invalid color declarations. svn path=/import/netsurf/; revision=1010
This commit is contained in:
parent
807f7ac284
commit
0df8b0734d
|
@ -1255,7 +1255,10 @@ void parse_clear(struct css_style * const s, const struct css_node * const v)
|
|||
|
||||
void parse_color(struct css_style * const s, const struct css_node * const v)
|
||||
{
|
||||
colour c = parse_colour(v);
|
||||
colour c;
|
||||
if (v->next)
|
||||
return;
|
||||
c = parse_colour(v);
|
||||
if (c != CSS_COLOR_NONE)
|
||||
s->color = c;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue