diff --git a/riscos/gui.c b/riscos/gui.c index 72b41e838..8987210a2 100644 --- a/riscos/gui.c +++ b/riscos/gui.c @@ -2301,7 +2301,7 @@ void ro_gui_view_source_bounce(wimp_message *message) * Send the debug dump of a content to a text editor. */ -void ro_gui_dump_content(struct content *content) +void ro_gui_dump_content(hlcache_handle *c) { os_error *error; @@ -2314,9 +2314,9 @@ void ro_gui_dump_content(struct content *content) } /* output debug information to file */ - switch (content->type) { + switch (content_get_type(c)) { case CONTENT_HTML: - box_dump(stream, content->data.html.layout, 0); + box_dump(stream, html_get_box_tree(c), 0); break; default: break; diff --git a/riscos/gui.h b/riscos/gui.h index 657f62e4e..41b3177e2 100644 --- a/riscos/gui.h +++ b/riscos/gui.h @@ -122,7 +122,7 @@ void ro_gui_open_window_request(wimp_open *open); void ro_gui_open_help_page(const char *page); void ro_gui_screen_size(int *width, int *height); void ro_gui_view_source(struct hlcache_handle *c); -void ro_gui_dump_content(struct content *content); +void ro_gui_dump_content(struct hlcache_handle *c); void ro_gui_drag_box_start(wimp_pointer *pointer); bool ro_gui_prequit(void); const char *ro_gui_default_language(void);