Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Unified Diff: fpdfsdk/cpdfsdk_interform.cpp

Issue 2394313002: Convert IJS_Runtime to CPDFSDK_FormFillEnvironment (Closed)
Patch Set: Rebase to master Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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());
Tom Sepez 2016/10/11 16:17:13 Remind me again why we think documents are 1:1 wit
dsinclair 2016/10/11 17:37:45 The GetJSRuntime method, if it doesn't already exi
-
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());
dsinclair 2016/10/11 17:37:45 Same reasoning as above.
-
if (pFormField->GetFieldType() == FIELDTYPE_COMBOBOX &&
pFormField->CountSelectedItems() > 0) {
int index = pFormField->GetSelectedIndex(0);
« no previous file with comments | « no previous file | fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.cpp » ('j') | fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698