summaryrefslogtreecommitdiff
path: root/render/box.h
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2011-04-27 13:50:49 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2011-04-27 13:50:49 +0000
commit1304964f92249a1f8e685db89aa694f77307d6ae (patch)
tree706003fb75d65aa2fe2e6f6e2a08f6c0091ca1e0 /render/box.h
parentd0e7a5ecacc8692b533c8102bfa6b2267f309ab9 (diff)
downloadnetsurf-1304964f92249a1f8e685db89aa694f77307d6ae.tar.gz
netsurf-1304964f92249a1f8e685db89aa694f77307d6ae.tar.bz2
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
Diffstat (limited to 'render/box.h')
-rw-r--r--render/box.h3
1 files changed, 2 insertions, 1 deletions
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 */