From 19c77ff2b141b49042cd9abc549e376dc4530497 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 4 Apr 2004 17:05:59 +0000 Subject: [project @ 2004-04-04 17:05:59 by jmb] Extract boxes from embedded HTML documents. svn path=/import/netsurf/; revision=720 --- desktop/browser.c | 7 +++++++ 1 file changed, 7 insertions(+) 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) -- cgit v1.2.3