From 5776d3448c50d58af0eac8f3960200aa1b5fc1a0 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Wed, 3 Jan 2018 16:59:58 +0000 Subject: CSS computed style composition: Update for new CSS units. Since the nscss_compute_font_size callback now needs to convert new units to absolute values, and some of these units require info from the root element's style, there are knock-on changes to ensure that the required info is available where its needed. --- render/box.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'render/box.h') diff --git a/render/box.h b/render/box.h index 2800d4026..8208a6fd3 100644 --- a/render/box.h +++ b/render/box.h @@ -356,6 +356,9 @@ bool box_hscrollbar_present(const struct box *box); nserror dom_to_box(struct dom_node *n, struct html_content *c, box_construct_complete_cb cb); -bool box_normalise_block(struct box *block, struct html_content *c); +bool box_normalise_block( + struct box *block, + const struct box *root, + struct html_content *c); #endif -- cgit v1.2.3