From ccd9421589922b8f35ee5330d7fdac7edea081db Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Thu, 3 May 2018 13:53:02 +0000 Subject: Add CPDF_Page::Extension::GetDocExtension() In turn, add CPDF_Document::Extension::GetPDFDoc() so that we can use the abstract return type in more places. Mark an internal-only cpdfxfa_context method as private while we're at it. Change-Id: I08e64f4b9438bf2f731c3a37cf2a41152bbbd8fa Reviewed-on: https://pdfium-review.googlesource.com/31916 Commit-Queue: dsinclair Reviewed-by: dsinclair --- fpdfsdk/fpdf_formfill.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'fpdfsdk/fpdf_formfill.cpp') diff --git a/fpdfsdk/fpdf_formfill.cpp b/fpdfsdk/fpdf_formfill.cpp index 202835cb57..b99bd5f40d 100644 --- a/fpdfsdk/fpdf_formfill.cpp +++ b/fpdfsdk/fpdf_formfill.cpp @@ -138,10 +138,10 @@ void FFLCommon(FPDF_FORMHANDLE hHandle, return; #ifdef PDF_ENABLE_XFA - CPDFXFA_Context* pContext = pPage->GetContext(); - if (!pContext) + CPDF_Document::Extension* pExtension = pPage->GetDocumentExtension(); + if (!pExtension) return; - CPDF_Document* pPDFDoc = pContext->GetPDFDoc(); + CPDF_Document* pPDFDoc = pExtension->GetPDFDoc(); if (!pPDFDoc) return; CPDFSDK_FormFillEnvironment* pFormFillEnv = -- cgit v1.2.3