From 4e574f12527b241ea266a9fad21f6424a9af3a44 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sat, 8 Oct 2011 00:21:59 +0000 Subject: Improve performance of style selection svn path=/trunk/netsurf/; revision=13000 --- 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 2e6d52567..3d5e91ec3 100644 --- a/render/box_construct.c +++ b/render/box_construct.c @@ -1102,6 +1102,7 @@ css_select_results *box_get_style(html_content *c, ctx.ctx = c->select_ctx; ctx.quirks = (c->quirks == BINDING_QUIRKS_MODE_FULL); ctx.base_url = c->base_url; + ctx.universal = c->universal; /* Select partial style for element */ styles = nscss_get_style(&ctx, n, CSS_MEDIA_SCREEN, inline_style, @@ -1118,7 +1119,6 @@ css_select_results *box_get_style(html_content *c, /* If there's a parent style, compose with partial to obtain * complete computed style for element */ if (parent_style != NULL) { - /* Complete the computed style, by composing with the parent * element's style */ error = css_computed_style_compose(parent_style, -- cgit v1.2.3