diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-06-01 17:42:33 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-06-01 17:42:33 +0000 |
commit | b80edf3fcb286c3265341c8905f0885c1d535d08 (patch) | |
tree | 9447b51c1487d26821631645297ad86c2e7a091f /fpdfsdk/cpdfsdk_helpers.cpp | |
parent | 3018c1c7323a1aa9fd89c7de5420ed925b5b6611 (diff) | |
download | pdfium-b80edf3fcb286c3265341c8905f0885c1d535d08.tar.xz |
Creating XFA context shouldn't be a side-effect of FPDF_* conversion.
Create it explicitly as needed.
Change-Id: I42d5a6f33bc32e7fb768bed96aa6d239d133467e
Reviewed-on: https://pdfium-review.googlesource.com/33350
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fpdfsdk/cpdfsdk_helpers.cpp')
-rw-r--r-- | fpdfsdk/cpdfsdk_helpers.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fpdfsdk/cpdfsdk_helpers.cpp b/fpdfsdk/cpdfsdk_helpers.cpp index 210fcf8b84..f7a875a3e9 100644 --- a/fpdfsdk/cpdfsdk_helpers.cpp +++ b/fpdfsdk/cpdfsdk_helpers.cpp @@ -156,10 +156,6 @@ CPDF_Document* CPDFDocumentFromFPDFDocument(FPDF_DOCUMENT doc) { } FPDF_DOCUMENT FPDFDocumentFromCPDFDocument(CPDF_Document* doc) { -#ifdef PDF_ENABLE_XFA - if (doc && !doc->GetExtension()) - doc->SetExtension(pdfium::MakeUnique<CPDFXFA_Context>(doc)); -#endif // PDF_ENABLE_XFA return reinterpret_cast<FPDF_DOCUMENT>(doc); } |