summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2004-04-04 17:05:59 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2004-04-04 17:05:59 +0000
commit19c77ff2b141b49042cd9abc549e376dc4530497 (patch)
treefbc37751079f0221223ab7b776c7977aec8d7663
parent308773a142722d3fe84f3a11f1b91b31f6c90745 (diff)
downloadnetsurf-19c77ff2b141b49042cd9abc549e376dc4530497.tar.gz
netsurf-19c77ff2b141b49042cd9abc549e376dc4530497.tar.bz2
[project @ 2004-04-04 17:05:59 by jmb]
Extract boxes from embedded HTML documents. svn path=/import/netsurf/; revision=720
-rw-r--r--desktop/browser.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/desktop/browser.c b/desktop/browser.c
index c06a6f0d2..d55a2794e 100644
--- a/desktop/browser.c
+++ b/desktop/browser.c
@@ -1320,6 +1320,13 @@ void box_under_area(struct box *box, unsigned long x, unsigned long y,
*count = *count + 1;
}
+ /* consider embedded HTML pages */
+ if (box->object != 0 && box->object->type == CONTENT_HTML &&
+ box->object->data.html.layout != 0)
+ box_under_area(box->object->data.html.layout, x, y,
+ box->x + ox, box->y +oy,
+ found, count, plot_index);
+
for (c = box->children; c != 0; c = c->next)
if (c->type != BOX_FLOAT_LEFT
&& c->type != BOX_FLOAT_RIGHT)