From da8063f087c379bfd286624338d31a112cae5ba4 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Mon, 30 Apr 2018 17:41:49 +0000 Subject: 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 Commit-Queue: Tom Sepez --- fxjs/cjs_document.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fxjs') diff --git a/fxjs/cjs_document.cpp b/fxjs/cjs_document.cpp index 9cfcad313e..07701902ea 100644 --- a/fxjs/cjs_document.cpp +++ b/fxjs/cjs_document.cpp @@ -829,14 +829,14 @@ CJS_Return CJS_Document::set_subject(CJS_Runtime* pRuntime, } CJS_Return CJS_Document::get_title(CJS_Runtime* pRuntime) { - if (!m_pFormFillEnv || !m_pFormFillEnv->GetUnderlyingDocument()) + if (!m_pFormFillEnv || !m_pFormFillEnv->GetPDFDocument()) return CJS_Return(JSGetStringFromID(JSMessage::kBadObjectError)); return getPropertyInternal(pRuntime, "Title"); } CJS_Return CJS_Document::set_title(CJS_Runtime* pRuntime, v8::Local vp) { - if (!m_pFormFillEnv || !m_pFormFillEnv->GetUnderlyingDocument()) + if (!m_pFormFillEnv || !m_pFormFillEnv->GetPDFDocument()) return CJS_Return(JSGetStringFromID(JSMessage::kBadObjectError)); return setPropertyInternal(pRuntime, vp, "Title"); } -- cgit v1.2.3