summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2016-01-18 20:10:13 +0000
committerRobin Watts <robin.watts@artifex.com>2016-01-18 20:10:13 +0000
commit0455fb54f5c7291c43ec782c11499ef074284cbc (patch)
treeba2d517638f6db1325f217fe68a98ee4e6a356b7 /include
parentf0b5caf942091d7b43bfc987689b5fd3302f5c80 (diff)
downloadmupdf-0455fb54f5c7291c43ec782c11499ef074284cbc.tar.xz
Save some space in fz_html_flow with a union.
Diffstat (limited to 'include')
-rw-r--r--include/mupdf/html.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/mupdf/html.h b/include/mupdf/html.h
index 3955aebc..fd42ec08 100644
--- a/include/mupdf/html.h
+++ b/include/mupdf/html.h
@@ -215,8 +215,10 @@ struct fz_html_flow_s
unsigned int block_r2l : 1;
float x, y, w, h, em;
fz_css_style *style;
- char *text;
- fz_image *image;
+ union {
+ char *text;
+ fz_image *image;
+ } content;
fz_html_flow *next;
};