diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-03-23 09:17:10 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-03-23 13:50:52 +0000 |
commit | cdba747a53082a7f36534dffa6a3ad01628e53c3 (patch) | |
tree | 4df0b15de7600592588a263deb9a3adee617f417 /fpdfsdk/javascript | |
parent | 1bbedec89cc59df3e305dc25082d9699237d70ab (diff) | |
download | pdfium-cdba747a53082a7f36534dffa6a3ad01628e53c3.tar.xz |
Cleanup DocType defines
This Cl synchronizes the DocType's defined in XFA with the DOCTYPE
flag used in public/. The internal XFA version is converted to an
enum class.
Change-Id: I1f7be71a200c1ec0f09f9b08099791da1f4fa2e4
Reviewed-on: https://pdfium-review.googlesource.com/3152
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: Nicolás Peña <npm@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fpdfsdk/javascript')
-rw-r--r-- | fpdfsdk/javascript/app.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fpdfsdk/javascript/app.cpp b/fpdfsdk/javascript/app.cpp index 3a8bf088f3..400340e38d 100644 --- a/fpdfsdk/javascript/app.cpp +++ b/fpdfsdk/javascript/app.cpp @@ -283,7 +283,8 @@ bool app::viewerVersion(CJS_Runtime* pRuntime, return false; #ifdef PDF_ENABLE_XFA CPDFXFA_Context* pXFAContext = pRuntime->GetFormFillEnv()->GetXFAContext(); - if (pXFAContext->GetDocType() == 1 || pXFAContext->GetDocType() == 2) { + if (pXFAContext->GetDocType() == XFA_DocType::Dynamic || + pXFAContext->GetDocType() == XFA_DocType::Static) { vp << JS_NUM_VIEWERVERSION_XFA; return true; } |