diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2011-01-05 22:38:37 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2011-01-05 22:38:37 +0000 |
commit | 77ea8a8d6399c112bc901674dbe490214d95af23 (patch) | |
tree | 0ba3f1e2f4cdf7b5efd81ab6858beb225482fc85 /render/box_construct.c | |
parent | 124e4cd78814e368488d8e86c15f95223f365a44 (diff) | |
download | netsurf-77ea8a8d6399c112bc901674dbe490214d95af23.tar.gz netsurf-77ea8a8d6399c112bc901674dbe490214d95af23.tar.bz2 |
Always want inline style now (also prevents use of an uninitialised variable)
svn path=/trunk/netsurf/; revision=11220
Diffstat (limited to 'render/box_construct.c')
-rw-r--r-- | render/box_construct.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/render/box_construct.c b/render/box_construct.c index 60fde90fa..106fc224d 100644 --- a/render/box_construct.c +++ b/render/box_construct.c @@ -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), |