summaryrefslogtreecommitdiff
path: root/fpdfsdk/fpdfformfill.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/fpdfformfill.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/fpdfformfill.cpp')
-rw-r--r--fpdfsdk/fpdfformfill.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/fpdfsdk/fpdfformfill.cpp b/fpdfsdk/fpdfformfill.cpp
index fd083c9dcd..050a401f02 100644
--- a/fpdfsdk/fpdfformfill.cpp
+++ b/fpdfsdk/fpdfformfill.cpp
@@ -708,7 +708,7 @@ DLLEXPORT void STDCALL FORM_DoDocumentAAction(FPDF_FORMHANDLE hHandle,
CPDFSDK_ActionHandler* pActionHandler =
HandleToCPDFSDKEnvironment(hHandle)->GetActionHander();
pActionHandler->DoAction_Document(action, (CPDF_AAction::AActionType)aaType,
- pSDKDoc);
+ pSDKDoc->GetEnv());
}
}
@@ -737,12 +737,12 @@ DLLEXPORT void STDCALL FORM_DoPageAAction(FPDF_PAGE page,
if (FPDFPAGE_AACTION_OPEN == aaType) {
if (aa.ActionExist(CPDF_AAction::OpenPage)) {
CPDF_Action action = aa.GetAction(CPDF_AAction::OpenPage);
- pActionHandler->DoAction_Page(action, CPDF_AAction::OpenPage, pSDKDoc);
+ pActionHandler->DoAction_Page(action, CPDF_AAction::OpenPage, pEnv);
}
} else {
if (aa.ActionExist(CPDF_AAction::ClosePage)) {
CPDF_Action action = aa.GetAction(CPDF_AAction::ClosePage);
- pActionHandler->DoAction_Page(action, CPDF_AAction::ClosePage, pSDKDoc);
+ pActionHandler->DoAction_Page(action, CPDF_AAction::ClosePage, pEnv);
}
}
}