summaryrefslogtreecommitdiff
path: root/fpdfsdk/cpdfsdk_document.cpp
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-10-11 12:51:37 -0700
committerCommit bot <commit-bot@chromium.org>2016-10-11 12:51:37 -0700
commit19c198b7b80633e6030457d276df99aee3ca8ca4 (patch)
tree440ed8b6076867a429a0841d005329f5ff3ece99 /fpdfsdk/cpdfsdk_document.cpp
parent82e1767b757d96e6b81d3e42b24048a9bea387a8 (diff)
downloadpdfium-19c198b7b80633e6030457d276df99aee3ca8ca4.tar.xz
Convert CPDFSDK_ActionHandler to CPDFSDK_FormFillEnvironment
This CL replaces CPDFSDK_Document with CPDFSDK_FormFillEnvironment in CPDFSDK_ActionHandler. Review-Url: https://codereview.chromium.org/2397933003
Diffstat (limited to 'fpdfsdk/cpdfsdk_document.cpp')
-rw-r--r--fpdfsdk/cpdfsdk_document.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/fpdfsdk/cpdfsdk_document.cpp b/fpdfsdk/cpdfsdk_document.cpp
index a3d2680f91..37d977ec4c 100644
--- a/fpdfsdk/cpdfsdk_document.cpp
+++ b/fpdfsdk/cpdfsdk_document.cpp
@@ -97,7 +97,7 @@ void CPDFSDK_Document::ProcJavascriptFun() {
CPDF_Action jsAction = docJS.GetJSAction(i, csJSName);
if (m_pEnv->GetActionHander())
m_pEnv->GetActionHander()->DoAction_JavaScript(
- jsAction, CFX_WideString::FromLocal(csJSName.AsStringC()), this);
+ jsAction, CFX_WideString::FromLocal(csJSName.AsStringC()), GetEnv());
}
}
@@ -122,7 +122,7 @@ FX_BOOL CPDFSDK_Document::ProcOpenAction() {
if (CPDF_Dictionary* pDict = pOpenAction->AsDictionary()) {
CPDF_Action action(pDict);
if (m_pEnv->GetActionHander())
- m_pEnv->GetActionHander()->DoAction_DocOpen(action, this);
+ m_pEnv->GetActionHander()->DoAction_DocOpen(action, GetEnv());
return TRUE;
}
return FALSE;