From 749dfa52ba697fd01a742393e18ac7f8fa4521a4 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Thu, 6 Jan 2011 11:11:47 +0000 Subject: Completion of first-letter and first-line pseudo element computed styles is not handled yet. svn path=/trunk/netsurf/; revision=11228 --- render/box_construct.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'render/box_construct.c') diff --git a/render/box_construct.c b/render/box_construct.c index 106fc224d..6c66e127e 100644 --- a/render/box_construct.c +++ b/render/box_construct.c @@ -928,6 +928,7 @@ css_select_results *box_get_style(struct content *c, { char *s; int pseudo_element; + css_error error; css_stylesheet *inline_style = NULL; css_select_results *styles; @@ -960,7 +961,6 @@ css_select_results *box_get_style(struct content *c, /* If there's a parent style, compose with partial to obtain * complete computed style for element */ if (parent_style != NULL) { - css_error error; /* Complete the computed style, by composing with the parent * element's style */ @@ -977,7 +977,12 @@ css_select_results *box_get_style(struct content *c, for (pseudo_element = CSS_PSEUDO_ELEMENT_NONE + 1; pseudo_element < CSS_PSEUDO_ELEMENT_COUNT; pseudo_element++) { - css_error error; + + if (pseudo_element == CSS_PSEUDO_ELEMENT_FIRST_LETTER || + pseudo_element == CSS_PSEUDO_ELEMENT_FIRST_LINE) + /* TODO: Handle first-line and first-letter pseudo + * element computed style completion */ + continue; if (styles->styles[pseudo_element] == NULL) /* There were no rules concerning this pseudo element */ -- cgit v1.2.3