From 1304964f92249a1f8e685db89aa694f77307d6ae Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Wed, 27 Apr 2011 13:50:49 +0000 Subject: Reduce number of page reflows and viewport redraws as images are fetched: + Flag known-sized boxes generated by images. + Treat them as replaced all through layout. + Only reflow the document for fetched images if we don't already have the box at the right size. svn path=/trunk/netsurf/; revision=12243 --- 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 0703c6da5..e7c19ad6d 100644 --- a/render/box.h +++ b/render/box.h @@ -126,7 +126,8 @@ typedef enum { 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 */ - NEED_MIN = 1 << 8 /* minimum width is required for layout */ + NEED_MIN = 1 << 8, /* minimum width is required for layout */ + REPLACE_DIM = 1 << 9 /* replaced element has given dimensions */ } box_flags; /* Sides of a box */ -- cgit v1.2.3