diff options
author | Vincent Sanders <vince@kyllikki.org> | 2019-11-05 23:05:42 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2019-11-05 23:05:42 +0000 |
commit | cbb0c05258e91fc3c3c6a421141df738fcfe7473 (patch) | |
tree | 7be33ccd8daeeb452dd429e58500c2d009180fc4 /content/handlers/html/box.h | |
parent | 78aa34e5d761c2597f24ebba89c69ac6fda2f3a8 (diff) | |
download | netsurf-cbb0c05258e91fc3c3c6a421141df738fcfe7473.tar.gz netsurf-cbb0c05258e91fc3c3c6a421141df738fcfe7473.tar.bz2 |
remove unecessary user warning calls and improve error propogation in html box
Diffstat (limited to 'content/handlers/html/box.h')
-rw-r--r-- | content/handlers/html/box.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/content/handlers/html/box.h b/content/handlers/html/box.h index 089c66433..8ab2875a0 100644 --- a/content/handlers/html/box.h +++ b/content/handlers/html/box.h @@ -353,8 +353,19 @@ void box_dump(FILE *stream, struct box *box, unsigned int depth, bool style); */ bool box_extract_link(const struct html_content *content, const struct dom_string *dsrel, struct nsurl *base, struct nsurl **result); -bool box_handle_scrollbars(struct content *c, struct box *box, +/** + * Applies the given scroll setup to a box. This includes scroll + * creation/deletion as well as scroll dimension updates. + * + * \param c content in which the box is located + * \param box the box to handle the scrolls for + * \param bottom whether the horizontal scrollbar should be present + * \param right whether the vertical scrollbar should be present + * \return true on success false otherwise + */ +nserror box_handle_scrollbars(struct content *c, struct box *box, bool bottom, bool right); + bool box_vscrollbar_present(const struct box *box); bool box_hscrollbar_present(const struct box *box); |