summaryrefslogtreecommitdiff
path: root/source/html/css-apply.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2014-11-05 16:02:19 +0100
committerTor Andersson <tor.andersson@artifex.com>2014-12-03 12:25:51 +0100
commit36667a0003cc5ac230d94f3483bcc77e8cfc600e (patch)
treef70c4daeaa4bd27a28f306f2515ae9f7e5b258e3 /source/html/css-apply.c
parent24d9a0f9720f7faade99f34c478bb24225174e91 (diff)
downloadmupdf-36667a0003cc5ac230d94f3483bcc77e8cfc600e.tar.xz
html: Generate flow nodes during box generation.
Diffstat (limited to 'source/html/css-apply.c')
-rw-r--r--source/html/css-apply.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/source/html/css-apply.c b/source/html/css-apply.c
index 0e451ce0..d5ceb24d 100644
--- a/source/html/css-apply.c
+++ b/source/html/css-apply.c
@@ -801,16 +801,21 @@ get_style_property_white_space(struct style *node)
}
void
-compute_style(struct computed_style *style, struct style *node)
+default_computed_style(struct computed_style *style)
{
- struct value *value;
-
memset(style, 0, sizeof *style);
-
style->text_align = TA_LEFT;
style->vertical_align = 0;
style->white_space = WS_NORMAL;
style->font_size = make_number(1, N_SCALE);
+}
+
+void
+compute_style(struct computed_style *style, struct style *node)
+{
+ struct value *value;
+
+ default_computed_style(style);
style->white_space = get_style_property_white_space(node);