diff options
author | James Bursa <james@netsurf-browser.org> | 2005-10-30 21:23:03 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2005-10-30 21:23:03 +0000 |
commit | c28747d71018fe12c16fa74da246b6355b6534c0 (patch) | |
tree | 17e6bf62ab1ce7a878739f02a0a758d4bb94001c /render/html.h | |
parent | b6e1d814a51e1bfff049e2815d6d959bc165c708 (diff) | |
download | netsurf-c28747d71018fe12c16fa74da246b6355b6534c0.tar.gz netsurf-c28747d71018fe12c16fa74da246b6355b6534c0.tar.bz2 |
[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
Diffstat (limited to 'render/html.h')
-rw-r--r-- | render/html.h | 16 |
1 files changed, 15 insertions, 1 deletions
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, |