diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2009-05-27 19:11:07 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2009-05-27 19:11:07 +0000 |
commit | 7bb2aa7cbbf027d2c600ecca86f2dc49f55289eb (patch) | |
tree | de3d355237f50b1a2060ad566a63c07ba8dbf024 /render | |
parent | 5b33c1e7231b692ba3f490fb4337cf110822ec25 (diff) | |
download | netsurf-7bb2aa7cbbf027d2c600ecca86f2dc49f55289eb.tar.gz netsurf-7bb2aa7cbbf027d2c600ecca86f2dc49f55289eb.tar.bz2 |
Remove a couple of superfluous conditions.
svn path=/trunk/netsurf/; revision=7588
Diffstat (limited to 'render')
-rw-r--r-- | render/layout.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/render/layout.c b/render/layout.c index 8548d7aa6..044b8f823 100644 --- a/render/layout.c +++ b/render/layout.c @@ -1201,9 +1201,9 @@ void layout_find_dimensions(int available_width, int viewport_height, style); break; case CSS_HEIGHT_PERCENT: - if (box->style->position == CSS_POSITION_ABSOLUTE && - box->float_container) { + if (box->style->position == CSS_POSITION_ABSOLUTE) { /* Box is absolutely positioned */ + assert(box->float_container); containing_block = box->float_container; } else if (box->float_container && box->style->position != @@ -2692,9 +2692,9 @@ bool layout_table(struct box *table, int available_width, /* This is the minimum height for the table (see 17.5.3) */ min_height = css_len2px(&style->height.value.length, style); } else if (style->height.height == CSS_HEIGHT_PERCENT) { - /* This is the minimum height for the table (see 17.5.3) */ if (table->style->position == CSS_POSITION_ABSOLUTE && - table->float_container) { + /* This is the minimum height for the table (see 17.5.3) */ if (table->style->position == CSS_POSITION_ABSOLUTE) { /* Table is absolutely positioned */ + assert(table->float_container); containing_block = table->float_container; } else if (table->float_container && table->style->position != |