Index: fpdfsdk/cpdfsdk_interform.cpp |
diff --git a/fpdfsdk/cpdfsdk_interform.cpp b/fpdfsdk/cpdfsdk_interform.cpp |
index 69698ea421aeef1c03eda4918cced5a574c9b590..005079dda96e0246e8d4e5d892373a0e046a788f 100644 |
--- a/fpdfsdk/cpdfsdk_interform.cpp |
+++ b/fpdfsdk/cpdfsdk_interform.cpp |
@@ -363,8 +363,7 @@ FX_BOOL CPDFSDK_InterForm::OnKeyStrokeCommit(CPDF_FormField* pFormField, |
fa.bShift = m_pFormFillEnv->IsSHIFTKeyDown(0); |
fa.sValue = csValue; |
pActionHandler->DoAction_FieldJavaScript(action, CPDF_AAction::KeyStroke, |
- m_pFormFillEnv->GetSDKDocument(), |
- pFormField, fa); |
+ m_pFormFillEnv, pFormField, fa); |
return fa.bRC; |
} |
@@ -384,8 +383,7 @@ FX_BOOL CPDFSDK_InterForm::OnValidate(CPDF_FormField* pFormField, |
fa.bShift = m_pFormFillEnv->IsSHIFTKeyDown(0); |
fa.sValue = csValue; |
pActionHandler->DoAction_FieldJavaScript(action, CPDF_AAction::Validate, |
- m_pFormFillEnv->GetSDKDocument(), |
- pFormField, fa); |
+ m_pFormFillEnv, pFormField, fa); |
return fa.bRC; |
} |