summaryrefslogtreecommitdiff
path: root/fpdfsdk/fpdf_view.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-05-25 23:37:50 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-05-25 23:37:50 +0000
commitca02733961f84abd562d59e4b6a83018ef41b143 (patch)
treea5f2cb28353fc82aab57f99d6605f5b817a04cce /fpdfsdk/fpdf_view.cpp
parentdf93cd35530e7b8dd67abde8d199c36c3fae76be (diff)
downloadpdfium-ca02733961f84abd562d59e4b6a83018ef41b143.tar.xz
Replace some #ifdefs PDF_ENABLE_XFA, part 2.
Tidy some code encountered along the way in cpdfsdk_helpers.cpp Remove one ifdef from xfa-only file. Restore some option flag processing (probably wrong to remove). Flip some #ifndef to #ifdef (#ifndef PDF_ENABLE_XFA is an anti-pattern and should be treated with suspicion since XFA should always be "additive"). Change-Id: I564a28401e20e6269c85ea610da8c96f8c8dd737 Reviewed-on: https://pdfium-review.googlesource.com/32834 Commit-Queue: Tom Sepez <tsepez@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fpdfsdk/fpdf_view.cpp')
-rw-r--r--fpdfsdk/fpdf_view.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/fpdfsdk/fpdf_view.cpp b/fpdfsdk/fpdf_view.cpp
index 593a092fd3..af9117579d 100644
--- a/fpdfsdk/fpdf_view.cpp
+++ b/fpdfsdk/fpdf_view.cpp
@@ -94,14 +94,13 @@ void RenderPageImpl(CPDF_PageRenderContext* pContext,
option_flags |= RENDER_LIMITEDIMAGECACHE;
if (flags & FPDF_RENDER_FORCEHALFTONE)
option_flags |= RENDER_FORCE_HALFTONE;
-#ifndef PDF_ENABLE_XFA
if (flags & FPDF_RENDER_NO_SMOOTHTEXT)
option_flags |= RENDER_NOTEXTSMOOTH;
if (flags & FPDF_RENDER_NO_SMOOTHIMAGE)
option_flags |= RENDER_NOIMAGESMOOTH;
if (flags & FPDF_RENDER_NO_SMOOTHPATH)
option_flags |= RENDER_NOPATHSMOOTH;
-#endif // PDF_ENABLE_XFA
+
pContext->m_pOptions->SetFlags(option_flags);
// Grayscale output