summaryrefslogtreecommitdiff
path: root/fxjs/cjs_document.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-04-30 17:41:49 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-04-30 17:41:49 +0000
commitda8063f087c379bfd286624338d31a112cae5ba4 (patch)
tree5a395009e71f665703d3685b0e5a5c4806e87d49 /fxjs/cjs_document.cpp
parent7c7f78a432a41b7074d225a91a590185e02aacf7 (diff)
downloadpdfium-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 'fxjs/cjs_document.cpp')
-rw-r--r--fxjs/cjs_document.cpp4
1 files changed, 2 insertions, 2 deletions
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<v8::Value> vp) {
- if (!m_pFormFillEnv || !m_pFormFillEnv->GetUnderlyingDocument())
+ if (!m_pFormFillEnv || !m_pFormFillEnv->GetPDFDocument())
return CJS_Return(JSGetStringFromID(JSMessage::kBadObjectError));
return setPropertyInternal(pRuntime, vp, "Title");
}