Always want inline style now (also prevents use of an uninitialised variable)

svn path=/trunk/netsurf/; revision=11220
This commit is contained in:
John Mark Bell 2011-01-05 22:38:37 +00:00
parent 124e4cd788
commit 77ea8a8d63

View File

@ -932,8 +932,7 @@ css_select_results *box_get_style(struct content *c,
css_select_results *styles;
/* Firstly, construct inline stylesheet, if any */
if ((s = (char *) xmlGetProp(n, (const xmlChar *) "style")) &&
pseudo_element == CSS_PSEUDO_ELEMENT_NONE) {
if ((s = (char *) xmlGetProp(n, (const xmlChar *) "style"))) {
inline_style = nscss_create_inline_style(
(uint8_t *) s, strlen(s),
c->data.html.encoding, content__get_url(c),