diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2018-01-11 18:29:53 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-01-11 18:29:53 +0000 |
commit | 9398e8b365416e07c6c31485c9ecf9674e2c71b4 (patch) | |
tree | 6967fbccad4d025f810c3bef412bfd623cf7bc31 /xfa/fxfa/parser/cxfa_node.cpp | |
parent | 5c818b62f4b17ea18f4fc5805ba11e1936e6bc62 (diff) | |
download | pdfium-9398e8b365416e07c6c31485c9ecf9674e2c71b4.tar.xz |
Rename CXFA_Event methods
This CL renames CXFA_Event methods for clarity and fixes callers
where needed.
Change-Id: I902a35f36ee91c1b4aadd10382d93988ef26dc1c
Reviewed-on: https://pdfium-review.googlesource.com/22750
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/cxfa_node.cpp')
-rw-r--r-- | xfa/fxfa/parser/cxfa_node.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/xfa/fxfa/parser/cxfa_node.cpp b/xfa/fxfa/parser/cxfa_node.cpp index e6cdf98d49..3f0eb2bb34 100644 --- a/xfa/fxfa/parser/cxfa_node.cpp +++ b/xfa/fxfa/parser/cxfa_node.cpp @@ -1690,12 +1690,16 @@ int32_t CXFA_Node::ProcessEvent(CXFA_FFDocView* docView, case XFA_Element::Execute: break; case XFA_Element::Script: - return ExecuteScript(docView, event->GetScript(), pEventParam); + return ExecuteScript(docView, event->GetScriptIfExists(), pEventParam); case XFA_Element::SignData: break; - case XFA_Element::Submit: + case XFA_Element::Submit: { + CXFA_Submit* submit = event->GetSubmitIfExists(); + if (!submit) + return XFA_EVENTERROR_NotExist; return docView->GetDoc()->GetDocEnvironment()->Submit(docView->GetDoc(), - event->GetSubmit()); + submit); + } default: break; } |