diff options
Diffstat (limited to 'source/fitz/context.c')
-rw-r--r-- | source/fitz/context.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/fitz/context.c b/source/fitz/context.c index 3e79bbea..f62cd9d7 100644 --- a/source/fitz/context.c +++ b/source/fitz/context.c @@ -35,6 +35,7 @@ struct fz_style_context_s { int refs; char *user_css; + int use_document_css; }; static void fz_new_style_context(fz_context *ctx) @@ -44,6 +45,7 @@ static void fz_new_style_context(fz_context *ctx) ctx->style = fz_malloc_struct(ctx, fz_style_context); ctx->style->refs = 1; ctx->style->user_css = NULL; + ctx->style->use_document_css = 1; } } @@ -65,6 +67,16 @@ static void fz_drop_style_context(fz_context *ctx) } } +void fz_set_use_document_css(fz_context *ctx, int use) +{ + ctx->style->use_document_css = use; +} + +int fz_use_document_css(fz_context *ctx) +{ + return ctx->style->use_document_css; +} + void fz_set_user_css(fz_context *ctx, const char *user_css) { fz_free(ctx, ctx->style->user_css); |