Chromium Code Reviews| Index: fpdfsdk/cpdfsdk_interform.cpp |
| diff --git a/fpdfsdk/cpdfsdk_interform.cpp b/fpdfsdk/cpdfsdk_interform.cpp |
| index 2cbdae96d43bfd1277e245dc2562be4fc0721a89..69698ea421aeef1c03eda4918cced5a574c9b590 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()); |
|
dsinclair
2016/10/06 20:38:23
We create the JSRuntime and pass 'this' as the for
|
| - |
| 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); |