summaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2011-05-10 11:11:54 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2011-05-10 11:11:54 +0000
commit5bd37ecf2cfe1e0c7602b219114b364ec3879d04 (patch)
tree87ac1c9cce54404426d0675aca3c9b7e218299f5 /render
parent523e77e38df4a4cb852ef2fa0da6ebf42b8c7fc2 (diff)
downloadnetsurf-5bd37ecf2cfe1e0c7602b219114b364ec3879d04.tar.gz
netsurf-5bd37ecf2cfe1e0c7602b219114b364ec3879d04.tar.bz2
Elements replaced with HTML don't affect parent descendants.
svn path=/trunk/netsurf/; revision=12365
Diffstat (limited to 'render')
-rw-r--r--render/layout.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/render/layout.c b/render/layout.c
index a347b1632..3271a955b 100644
--- a/render/layout.c
+++ b/render/layout.c
@@ -4918,9 +4918,12 @@ static void layout_update_descendant_bbox(struct box *box, struct box *child,
int child_x = child->x - off_x;
int child_y = child->y - off_y;
+ bool html_object = (child->object &&
+ content_get_type(child->object) == CONTENT_HTML);
+
if (child->style == NULL ||
(child->style && css_computed_overflow(child->style) ==
- CSS_OVERFLOW_VISIBLE)) {
+ CSS_OVERFLOW_VISIBLE && html_object == false)) {
/* get child's descendant bbox relative to box */
child_desc_x0 = child_x + child->descendant_x0;
child_desc_y0 = child_y + child->descendant_y0;