Remove redundant validation -- if you successfully obtain a css_select_results object, then its base style is guaranteed to exist
svn path=/trunk/netsurf/; revision=11217
This commit is contained in:
parent
12a9c138e6
commit
9422e6dad0
|
@ -955,7 +955,7 @@ css_select_results *box_get_style(struct content *c,
|
|||
css_stylesheet_destroy(inline_style);
|
||||
|
||||
/* Failed selecting partial style -- bail out */
|
||||
if (styles == NULL || styles->styles[CSS_PSEUDO_ELEMENT_NONE] == NULL)
|
||||
if (styles == NULL)
|
||||
return NULL;
|
||||
|
||||
/* If there's a parent style, compose with partial to obtain
|
||||
|
|
Loading…
Reference in New Issue