summaryrefslogtreecommitdiff
path: root/css/dump.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2013-05-07 14:56:42 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2013-05-07 14:56:42 +0100
commit8b6665fe0383fd565ac7d7cd6a2bf6243ebc9937 (patch)
treeffa2ae68c2f87f19cbbd13b7e79a632a682202ee /css/dump.c
parent3afd9c97310d58c0c6588d18887244328590731e (diff)
parentf4af0d86e240948bb37a1d318d4e2559f04c6a79 (diff)
downloadnetsurf-8b6665fe0383fd565ac7d7cd6a2bf6243ebc9937.tar.gz
netsurf-8b6665fe0383fd565ac7d7cd6a2bf6243ebc9937.tar.bz2
Merge branch 'master' of git://git.netsurf-browser.org/netsurf into tlsa/selection-search-refactor
Diffstat (limited to 'css/dump.c')
-rw-r--r--css/dump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/css/dump.c b/css/dump.c
index 1fe887400..fa34284e0 100644
--- a/css/dump.c
+++ b/css/dump.c
@@ -576,7 +576,7 @@ void nscss_dump_computed_style(FILE *stream, const css_computed_style *style)
/* counter-increment */
val = css_computed_counter_increment(style, &counter);
- if (counter == NULL) {
+ if ((val == CSS_COUNTER_INCREMENT_NONE) || (counter == NULL)) {
fprintf(stream, "counter-increment: none ");
} else {
fprintf(stream, "counter-increment:");
@@ -596,7 +596,7 @@ void nscss_dump_computed_style(FILE *stream, const css_computed_style *style)
/* counter-reset */
val = css_computed_counter_reset(style, &counter);
- if (counter == NULL) {
+ if ((val == CSS_COUNTER_RESET_NONE) || (counter == NULL)) {
fprintf(stream, "counter-reset: none ");
} else {
fprintf(stream, "counter-reset:");