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:
John Mark Bell 2011-01-05 20:14:34 +00:00
parent 12a9c138e6
commit 9422e6dad0
1 changed files with 1 additions and 1 deletions

View File

@ -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