diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2011-10-08 00:21:59 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2011-10-08 00:21:59 +0000 |
commit | 4e574f12527b241ea266a9fad21f6424a9af3a44 (patch) | |
tree | 939fef2635fedee440bd6fcf08cadc95f4471930 /render/box_construct.c | |
parent | 1e828006aa6f15151b0a0786db79de90de54046a (diff) | |
download | netsurf-4e574f12527b241ea266a9fad21f6424a9af3a44.tar.gz netsurf-4e574f12527b241ea266a9fad21f6424a9af3a44.tar.bz2 |
Improve performance of style selection
svn path=/trunk/netsurf/; revision=13000
Diffstat (limited to 'render/box_construct.c')
-rw-r--r-- | render/box_construct.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, |