From c28747d71018fe12c16fa74da246b6355b6534c0 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Sun, 30 Oct 2005 21:23:03 +0000 Subject: [project @ 2005-10-30 21:23:03 by bursa] Add page, index, and box to struct content_html_data. Implement html_replace_object() and html_find_target(). No longer combine box trees of frames and frameset (was causing crashes). svn path=/import/netsurf/; revision=1874 --- render/html.h | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'render/html.h') diff --git a/render/html.h b/render/html.h index 9a0077af4..959624d35 100644 --- a/render/html.h +++ b/render/html.h @@ -22,6 +22,7 @@ struct box; struct browser_window; struct content; +struct form_successful_control; struct imagemap; struct object_params; struct plotters; @@ -84,6 +85,14 @@ struct content_html_data { /** Browser window containing this document, or 0 if not open. */ struct browser_window *bw; + + /** Content of type CONTENT_HTML containing this, or 0 if not an object + * within a page. */ + struct content *page; + /** Index in page->data.html.object, or 0 if not an object. */ + unsigned int index; + /** Box containing this, or 0 if not an object. */ + struct box *box; }; /** Render padding and margin box outlines in html_redraw(). */ @@ -99,11 +108,16 @@ bool html_fetch_object(struct content *c, char *url, struct box *box, const content_type *permitted_types, int available_width, int available_height, bool background, char *frame); +bool html_replace_object(struct content *c, unsigned int i, char *url, + char *post_urlenc, + struct form_successful_control *post_multipart); void html_stop(struct content *c); void html_open(struct content *c, struct browser_window *bw, - struct content *page, struct box *box, + struct content *page, unsigned int index, struct box *box, struct object_params *params); void html_close(struct content *c); +void html_find_target(struct content *c, const char *target, + struct content **page, unsigned int *i); /* in render/html_redraw.c */ bool html_redraw(struct content *c, int x, int y, -- cgit v1.2.3