mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-25 13:37:02 +03:00
Always want inline style now (also prevents use of an uninitialised variable)
svn path=/trunk/netsurf/; revision=11220
This commit is contained in:
parent
124e4cd788
commit
77ea8a8d63
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user