Fix build

svn path=/trunk/netsurf/; revision=9392
This commit is contained in:
John Mark Bell 2009-08-22 10:21:43 +00:00
parent 5552f2b06c
commit 196f268ae5
1 changed files with 9 additions and 22 deletions

View File

@ -1472,6 +1472,15 @@ void nscss_dump_computed_style(FILE *stream, const css_computed_style *style)
case CSS_TEXT_ALIGN_DEFAULT:
fprintf(stream, "text-align: default ");
break;
case CSS_TEXT_ALIGN_LIBCSS_LEFT:
fprintf(stream, "text-align: -libcss-left ");
break;
case CSS_TEXT_ALIGN_LIBCSS_CENTER:
fprintf(stream, "text-align: -libcss-center ");
break;
case CSS_TEXT_ALIGN_LIBCSS_RIGHT:
fprintf(stream, "text-align: -libcss-right ");
break;
default:
break;
}
@ -1688,28 +1697,6 @@ void nscss_dump_computed_style(FILE *stream, const css_computed_style *style)
break;
}
/* -libcss-align */
val = css_computed_libcss_align(style);
switch (val) {
case CSS_LIBCSS_ALIGN_LEFT:
fprintf(stream, "-libcss-align: left ");
break;
case CSS_LIBCSS_ALIGN_RIGHT:
fprintf(stream, "-libcss-align: right ");
break;
case CSS_LIBCSS_ALIGN_CENTER:
fprintf(stream, "-libcss-align: center ");
break;
case CSS_LIBCSS_ALIGN_JUSTIFY:
fprintf(stream, "-libcss-align: justify ");
break;
case CSS_LIBCSS_ALIGN_DEFAULT:
fprintf(stream, "-libcss-align: default ");
break;
default:
break;
}
fprintf(stream, "}");
}