diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2011-04-26 15:03:44 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2011-04-26 15:03:44 +0000 |
commit | 769011911ce35ccd504c1c2a7059d0332bd40704 (patch) | |
tree | 3392bef4c79f5c2db9960f6a26cc608256bbda15 /render/box.h | |
parent | ae851630ec4f973620699012e6202e9678d6ce7f (diff) | |
download | netsurf-769011911ce35ccd504c1c2a7059d0332bd40704.tar.gz netsurf-769011911ce35ccd504c1c2a7059d0332bd40704.tar.bz2 |
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
Diffstat (limited to 'render/box.h')
-rw-r--r-- | render/box.h | 3 |
1 files changed, 2 insertions, 1 deletions
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 */ |