diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2012-08-20 16:04:44 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2012-08-20 16:04:44 +0100 |
commit | a11de47b644d88dc5951f82b3f4bec589b7da3ff (patch) | |
tree | e7cb5ee741f371ef31636ad145587c6f86a48d8f | |
parent | daf10f00a6c19ac279f53190bfaa39d04772809a (diff) | |
download | netsurf-a11de47b644d88dc5951f82b3f4bec589b7da3ff.tar.gz netsurf-a11de47b644d88dc5951f82b3f4bec589b7da3ff.tar.bz2 |
Implement debug dump content call for HTML.
-rw-r--r-- | render/html.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/render/html.c b/render/html.c index 0dde26b9b..17ca80184 100644 --- a/render/html.c +++ b/render/html.c @@ -2892,6 +2892,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 * * \param c content of type html @@ -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, |