diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-02-14 16:33:11 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-02-14 16:33:11 +0000 |
commit | 03c0b36fdb90960b4a4c1e6f86084c850463195b (patch) | |
tree | 70bcc43f3211b50e92f5f0b00a82736ed4e37c9a /test | |
parent | 06f84e8ea45d8725d4f4bcf910ce260eb7f7daff (diff) | |
download | libcss-03c0b36fdb90960b4a4c1e6f86084c850463195b.tar.gz libcss-03c0b36fdb90960b4a4c1e6f86084c850463195b.tar.bz2 |
Fix caption-side constants
Surround clip with #if 0 as it doesn't compile and I'm too lazy to fix it.
svn path=/trunk/libcss/; revision=6500
Diffstat (limited to 'test')
-rw-r--r-- | test/dump_computed.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/test/dump_computed.h b/test/dump_computed.h index 1ab4b88..95e8631 100644 --- a/test/dump_computed.h +++ b/test/dump_computed.h @@ -628,10 +628,10 @@ static void dump_computed_style(const css_computed_style *style, char *buf, /* caption-side */ val = css_computed_caption_side(style); switch (val) { - case CSS_BOTTOM_TOP: + case CSS_CAPTION_SIDE_TOP: wrote = snprintf(ptr, *len, "caption_side: top\n"); break; - case CSS_BOTTOM_BOTTOM: + case CSS_CAPTION_SIDE_BOTTOM: wrote = snprintf(ptr, *len, "caption_side: bottom\n"); break; default: @@ -665,12 +665,13 @@ static void dump_computed_style(const css_computed_style *style, char *buf, /* clip */ if (style->uncommon != NULL) { +#if 0 val = css_computed_clip(style); switch (val) { - case CSS_CLEAR_AUTO: + case CSS_CLIP_AUTO: wrote = snprintf(ptr, *len, "clip: auto\n"); break; - case CSS_CLEAR_RECT: + case CSS_CLIP_RECT: wrote = snprintf(ptr, *len, "clip: rect\n"); break; default: @@ -679,6 +680,7 @@ static void dump_computed_style(const css_computed_style *style, char *buf, } ptr += wrote; *len -= wrote; +#endif } /* color */ |