From 03c0b36fdb90960b4a4c1e6f86084c850463195b Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sat, 14 Feb 2009 16:33:11 +0000 Subject: 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 --- test/dump_computed.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'test/dump_computed.h') 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 */ -- cgit v1.2.3