diff options
-rw-r--r-- | include/mupdf/html.h | 2 | ||||
-rw-r--r-- | source/html/css-apply.c | 2 | ||||
-rw-r--r-- | source/html/html-layout.c | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/include/mupdf/html.h b/include/mupdf/html.h index 9986fb01..a768f9df 100644 --- a/include/mupdf/html.h +++ b/include/mupdf/html.h @@ -87,7 +87,7 @@ struct fz_css_match_s } prop[64]; }; -enum { DIS_NONE, DIS_BLOCK, DIS_INLINE, DIS_LIST_ITEM }; +enum { DIS_NONE, DIS_BLOCK, DIS_INLINE, DIS_LIST_ITEM, DIS_INLINE_BLOCK }; enum { POS_STATIC, POS_RELATIVE, POS_ABSOLUTE, POS_FIXED }; enum { WS_NORMAL, WS_PRE, WS_NOWRAP, WS_PRE_WRAP, WS_PRE_LINE }; enum { TA_LEFT, TA_RIGHT, TA_CENTER, TA_JUSTIFY }; diff --git a/source/html/css-apply.c b/source/html/css-apply.c index fbccac8d..bf0336eb 100644 --- a/source/html/css-apply.c +++ b/source/html/css-apply.c @@ -892,6 +892,8 @@ fz_get_css_match_display(fz_css_match *match) return DIS_BLOCK; if (!strcmp(value->data, "list-item")) return DIS_LIST_ITEM; + if (!strcmp(value->data, "inline-block")) + return DIS_INLINE_BLOCK; } return DIS_INLINE; } diff --git a/source/html/html-layout.c b/source/html/html-layout.c index 4926dc51..6e9655db 100644 --- a/source/html/html-layout.c +++ b/source/html/html-layout.c @@ -316,7 +316,7 @@ static void generate_boxes(fz_context *ctx, fz_html_font_set *set, fz_archive *z box = new_box(ctx); fz_apply_css_style(ctx, set, &box->style, &match); - if (display == DIS_BLOCK) + if (display == DIS_BLOCK || display == DIS_INLINE_BLOCK) { top = insert_block_box(ctx, box, top); } |