From 769011911ce35ccd504c1c2a7059d0332bd40704 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Tue, 26 Apr 2011 15:03:44 +0000 Subject: Optimise first pass of layout. Reduces number of nsfont_width calls by up to the page's word count. svn path=/trunk/netsurf/; revision=12239 --- render/box.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'render/box.h') diff --git a/render/box.h b/render/box.h index 7a63203e8..0703c6da5 100644 --- a/render/box.h +++ b/render/box.h @@ -125,7 +125,8 @@ typedef enum { CLONE = 1 << 4, /* continuation of previous box from wrapping */ MEASURED = 1 << 5, /* text box width has been measured */ HAS_HEIGHT = 1 << 6, /* box has height (perhaps due to children) */ - MAKE_HEIGHT = 1 << 7 /* box causes its own height */ + MAKE_HEIGHT = 1 << 7, /* box causes its own height */ + NEED_MIN = 1 << 8 /* minimum width is required for layout */ } box_flags; /* Sides of a box */ -- cgit v1.2.3