summaryrefslogtreecommitdiff
path: root/render/layout.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2010-09-08 17:22:35 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2010-09-08 17:22:35 +0000
commitb9773d34bb523d3bac09f328900e60b02feea97b (patch)
treec9e6730c808df74500c6b7f8821aa3fc40582486 /render/layout.c
parente0477fa6682a5c0aa547dc2096ac4e908aa62b7c (diff)
downloadnetsurf-b9773d34bb523d3bac09f328900e60b02feea97b.tar.gz
netsurf-b9773d34bb523d3bac09f328900e60b02feea97b.tar.bz2
Root element can't be absolute positioned. Fixes #3062055.
svn path=/trunk/netsurf/; revision=10743
Diffstat (limited to 'render/layout.c')
-rw-r--r--render/layout.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/render/layout.c b/render/layout.c
index 6774495b5..bd951a252 100644
--- a/render/layout.c
+++ b/render/layout.c
@@ -1350,7 +1350,8 @@ void layout_find_dimensions(int available_width, int viewport_height,
enum css_height_e cbhtype;
if (css_computed_position(box->style) ==
- CSS_POSITION_ABSOLUTE) {
+ CSS_POSITION_ABSOLUTE &&
+ box->parent) {
/* Box is absolutely positioned */
assert(box->float_container);
containing_block = box->float_container;