summaryrefslogtreecommitdiff
path: root/render/box.h
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2011-03-02 19:16:03 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2011-03-02 19:16:03 +0000
commitbe366b0e6bb47fa8cc0bb8a6c310884f2cf4078f (patch)
tree11825f7b900b04a5bd7d1581682f713eaa241be6 /render/box.h
parent3707be6292e5d8c93b121a698f67bb679ff8fba4 (diff)
downloadnetsurf-be366b0e6bb47fa8cc0bb8a6c310884f2cf4078f.tar.gz
netsurf-be366b0e6bb47fa8cc0bb8a6c310884f2cf4078f.tar.bz2
Move strip_leading_newline to box flags.
svn path=/trunk/netsurf/; revision=11889
Diffstat (limited to 'render/box.h')
-rw-r--r--render/box.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/render/box.h b/render/box.h
index 3d00db98e..441e3d9f7 100644
--- a/render/box.h
+++ b/render/box.h
@@ -120,7 +120,8 @@ typedef enum {
typedef enum {
NEW_LINE = 1 << 0, /* first inline on a new line */
STYLE_OWNED = 1 << 1, /* style is owned by this box */
- PRINTED = 1 << 2 /* box has already been printed */
+ PRINTED = 1 << 2, /* box has already been printed */
+ PRE_STRIP = 1 << 3 /* PRE tag needing leading newline stripped */
} box_flags;
/* Sides of a box */
@@ -205,10 +206,6 @@ struct box {
/** This box is a continuation of the previous box (eg from line
* breaking). */
unsigned int clone : 1;
- /** This box represents a <pre> tag which has not yet had its white
- * space stripped if possible
- */
- unsigned int strip_leading_newline : 1;
char *href; /**< Link, or 0. */
const char *target; /**< Link target, or 0. */