From 9422e6dad0dffa134c961d16e9aa503324245cd7 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Wed, 5 Jan 2011 20:14:34 +0000 Subject: 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 --- render/box_construct.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'render/box_construct.c') 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 -- cgit v1.2.3