Author: tlsa
Date: Tue Mar 1 15:48:38 2011
New Revision: 11880
URL:
http://source.netsurf-browser.org?rev=11880&view=rev
Log:
More useful assert and remove box_dump call.
Modified:
trunk/netsurf/render/layout.c
Modified: trunk/netsurf/render/layout.c
URL:
http://source.netsurf-browser.org/trunk/netsurf/render/layout.c?rev=11880...
==============================================================================
--- trunk/netsurf/render/layout.c (original)
+++ trunk/netsurf/render/layout.c Tue Mar 1 15:48:38 2011
@@ -4603,14 +4603,8 @@
{
struct box *child;
- if ((box->width == UNKNOWN_WIDTH) || (box->height == AUTO) /*||
- box->width < 0 || box->height < 0*/) {
- LOG(("%p has bad width or height", box));
- /*while (box->parent)
- box = box->parent;
- box_dump(box, 0);*/
- assert(0);
- }
+ assert((box->width != UNKNOWN_WIDTH) && (box->height != AUTO));
+ /* assert((box->width >= 0) && (box->height >= 0)); */
/* Initialise box's descendant box to border edge box */
layout_get_box_bbox(box, &box->descendant_x0, &box->descendant_y0,