From a11de47b644d88dc5951f82b3f4bec589b7da3ff Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 20 Aug 2012 16:04:44 +0100 Subject: Implement debug dump content call for HTML. --- render/html.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/render/html.c b/render/html.c index 0dde26b9b..17ca80184 100644 --- a/render/html.c +++ b/render/html.c @@ -2891,6 +2891,23 @@ static bool html_drop_file_at_point(struct content *c, int x, int y, char *file) } +/** + * Dump debug info concerning the html_content + * + * \param bw The browser window + * \param bw The file to dump to + */ +static void html_debug_dump(struct content *c, FILE *f) +{ + html_content *html = (html_content *) c; + + assert(html != NULL); + assert(html->layout != NULL); + + box_dump(f, html->layout, 0); +} + + /** * Set an HTML content's search context * @@ -3219,6 +3236,7 @@ static const content_handler html_content_handler = { .get_contextual_content = html_get_contextual_content, .scroll_at_point = html_scroll_at_point, .drop_file_at_point = html_drop_file_at_point, + .debug_dump = html_debug_dump, .clone = html_clone, .type = html_content_type, .no_share = true, -- cgit v1.2.3