diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2018-01-03 16:59:58 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2018-01-05 13:49:51 +0000 |
commit | 5776d3448c50d58af0eac8f3960200aa1b5fc1a0 (patch) | |
tree | 3cee8d98bad02fc012dd53a3bd6d7e45a9d606d3 /render/box.h | |
parent | d1c656b55f7c21b5fb96bf5e1bd8fedaa55c4fc2 (diff) | |
download | netsurf-5776d3448c50d58af0eac8f3960200aa1b5fc1a0.tar.gz netsurf-5776d3448c50d58af0eac8f3960200aa1b5fc1a0.tar.bz2 |
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.
Diffstat (limited to 'render/box.h')
-rw-r--r-- | render/box.h | 5 |
1 files changed, 4 insertions, 1 deletions
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 |