diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2011-01-06 11:11:47 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2011-01-06 11:11:47 +0000 |
commit | 749dfa52ba697fd01a742393e18ac7f8fa4521a4 (patch) | |
tree | d2107c2c83e3e7ba9d01d506af0bfdb6d49eb76a /render | |
parent | 30a92ed4e60d49b2510189ed5fa818cb90f2b636 (diff) | |
download | netsurf-749dfa52ba697fd01a742393e18ac7f8fa4521a4.tar.gz netsurf-749dfa52ba697fd01a742393e18ac7f8fa4521a4.tar.bz2 |
Completion of first-letter and first-line pseudo element computed styles is not handled yet.
svn path=/trunk/netsurf/; revision=11228
Diffstat (limited to 'render')
-rw-r--r-- | render/box_construct.c | 9 |
1 files changed, 7 insertions, 2 deletions
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 */ |