diff options
author | dsinclair <dsinclair@chromium.org> | 2016-10-11 12:38:01 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-10-11 12:38:01 -0700 |
commit | 82e1767b757d96e6b81d3e42b24048a9bea387a8 (patch) | |
tree | b7d14dfcd42ce6acf7a5552be0ff185cf0a9ed58 /fpdfsdk/cpdfsdk_interform.cpp | |
parent | 9fa95efa11f211a6faf9b2adb27211f784aee89a (diff) | |
download | pdfium-82e1767b757d96e6b81d3e42b24048a9bea387a8.tar.xz |
Convert IJS_Runtime to CPDFSDK_FormFillEnvironment
This CL changes the use of CPDFSDK_Document to CPDFSDK_FormFillEnvironment.
Review-Url: https://codereview.chromium.org/2394313002
Diffstat (limited to 'fpdfsdk/cpdfsdk_interform.cpp')
-rw-r--r-- | fpdfsdk/cpdfsdk_interform.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fpdfsdk/cpdfsdk_interform.cpp b/fpdfsdk/cpdfsdk_interform.cpp index 2cbdae96d4..69698ea421 100644 --- a/fpdfsdk/cpdfsdk_interform.cpp +++ b/fpdfsdk/cpdfsdk_interform.cpp @@ -236,8 +236,6 @@ void CPDFSDK_InterForm::OnCalculate(CPDF_FormField* pFormField) { } IJS_Runtime* pRuntime = m_pFormFillEnv->GetJSRuntime(); - pRuntime->SetReaderDocument(m_pFormFillEnv->GetSDKDocument()); - int nSize = m_pInterForm->CountFieldsInCalculationOrder(); for (int i = 0; i < nSize; i++) { CPDF_FormField* pField = m_pInterForm->GetFieldInCalculationOrder(i); @@ -286,8 +284,6 @@ CFX_WideString CPDFSDK_InterForm::OnFormat(CPDF_FormField* pFormField, } IJS_Runtime* pRuntime = m_pFormFillEnv->GetJSRuntime(); - pRuntime->SetReaderDocument(m_pFormFillEnv->GetSDKDocument()); - if (pFormField->GetFieldType() == FIELDTYPE_COMBOBOX && pFormField->CountSelectedItems() > 0) { int index = pFormField->GetSelectedIndex(0); |