diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-04-30 17:41:49 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-04-30 17:41:49 +0000 |
commit | da8063f087c379bfd286624338d31a112cae5ba4 (patch) | |
tree | 5a395009e71f665703d3685b0e5a5c4806e87d49 /fpdfsdk/fpdf_formfill.cpp | |
parent | 7c7f78a432a41b7074d225a91a590185e02aacf7 (diff) | |
download | pdfium-da8063f087c379bfd286624338d31a112cae5ba4.tar.xz |
Make CPDFSDK_FormFillEnvironment always hold a CPDF_Document.
Small step towards removing UnderlyingDocumentType and making FPDF
documents always be CPDF documents, regardless of XFA. This improves
layering a bit in the process.
Change-Id: Ice5ed7ba1ffdd7edfc9c4719f0e3a9cfb22f5790
Reviewed-on: https://pdfium-review.googlesource.com/31672
Reviewed-by: dsinclair <dsinclair@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fpdfsdk/fpdf_formfill.cpp')
-rw-r--r-- | fpdfsdk/fpdf_formfill.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fpdfsdk/fpdf_formfill.cpp b/fpdfsdk/fpdf_formfill.cpp index b70bd9da50..5d762ee1f0 100644 --- a/fpdfsdk/fpdf_formfill.cpp +++ b/fpdfsdk/fpdf_formfill.cpp @@ -299,8 +299,8 @@ FPDFDOC_InitFormFillEnvironment(FPDF_DOCUMENT document, return pDocument->GetFormFillEnv(); #endif - auto pFormFillEnv = - pdfium::MakeUnique<CPDFSDK_FormFillEnvironment>(pDocument, formInfo); + auto pFormFillEnv = pdfium::MakeUnique<CPDFSDK_FormFillEnvironment>( + CPDFDocumentFromFPDFDocument(document), formInfo); #ifdef PDF_ENABLE_XFA pDocument->SetFormFillEnv(pFormFillEnv.get()); |