summaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2011-01-05 20:14:34 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2011-01-05 20:14:34 +0000
commit9422e6dad0dffa134c961d16e9aa503324245cd7 (patch)
tree5b08216b977a1d5feb0f913441c27addded71b37 /render
parent12a9c138e6a88e2e76dfd8716f3a839a80b95dbc (diff)
downloadnetsurf-9422e6dad0dffa134c961d16e9aa503324245cd7.tar.gz
netsurf-9422e6dad0dffa134c961d16e9aa503324245cd7.tar.bz2
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
Diffstat (limited to 'render')
-rw-r--r--render/box_construct.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/render/box_construct.c b/render/box_construct.c
index 484b8221e..60fde90fa 100644
--- a/render/box_construct.c
+++ b/render/box_construct.c
@@ -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