From 77ea8a8d6399c112bc901674dbe490214d95af23 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Wed, 5 Jan 2011 22:38:37 +0000 Subject: Always want inline style now (also prevents use of an uninitialised variable) svn path=/trunk/netsurf/; revision=11220 --- render/box_construct.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'render') 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), -- cgit v1.2.3