summaryrefslogtreecommitdiff
path: root/source/html/css-apply.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2015-05-06 15:07:32 +0200
committerTor Andersson <tor.andersson@artifex.com>2015-05-06 15:07:32 +0200
commit852eacf72cac2a988d511796680642cf692dcca4 (patch)
tree0773f3d81f5523dc1c33c475ef6af1e9842b9812 /source/html/css-apply.c
parentb59d73634725a939175fd0e98a6f86bd6ed0d570 (diff)
downloadmupdf-852eacf72cac2a988d511796680642cf692dcca4.tar.xz
WIP: Add debug printing function for generated boxes.
Diffstat (limited to 'source/html/css-apply.c')
-rw-r--r--source/html/css-apply.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/source/html/css-apply.c b/source/html/css-apply.c
index a4468bd7..d72079e8 100644
--- a/source/html/css-apply.c
+++ b/source/html/css-apply.c
@@ -1146,26 +1146,3 @@ print_rules(fz_css_rule *rule)
rule = rule->next;
}
}
-
-void
-print_style(fz_css_style *style)
-{
- printf("style {\n");
- printf("\tfont-size = %g%c;\n", style->font_size.value, style->font_size.unit);
- printf("\tfont = %s;\n", style->font->name);
- printf("\tline-height = %g%c;\n", style->line_height.value, style->line_height.unit);
- printf("\ttext-indent = %g%c;\n", style->text_indent.value, style->text_indent.unit);
- printf("\ttext-align = %d;\n", style->text_align);
- printf("\tvertical-align = %d;\n", style->vertical_align);
- printf("\tmargin = %g%c %g%c %g%c %g%c;\n",
- style->margin[0].value, style->margin[0].unit,
- style->margin[1].value, style->margin[1].unit,
- style->margin[2].value, style->margin[2].unit,
- style->margin[3].value, style->margin[3].unit);
- printf("\tpadding = %g%c %g%c %g%c %g%c;\n",
- style->padding[0].value, style->padding[0].unit,
- style->padding[1].value, style->padding[1].unit,
- style->padding[2].value, style->padding[2].unit,
- style->padding[3].value, style->padding[3].unit);
- printf("}\n");
-}