diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2014-11-05 16:02:19 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2014-12-03 12:25:51 +0100 |
commit | 36667a0003cc5ac230d94f3483bcc77e8cfc600e (patch) | |
tree | f70c4daeaa4bd27a28f306f2515ae9f7e5b258e3 /source/html/css-apply.c | |
parent | 24d9a0f9720f7faade99f34c478bb24225174e91 (diff) | |
download | mupdf-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.c | 13 |
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); |