summaryrefslogtreecommitdiff
path: root/xfa/fxfa/cxfa_ffnotify.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2018-01-09 10:02:55 -0500
committerChromium commit bot <commit-bot@chromium.org>2018-01-09 15:39:46 +0000
commit95bb9748c9292d282e2425d4500f15f5c48c2b34 (patch)
treef1985696c8c842125b13f6a2372f2f10da7383b9 /xfa/fxfa/cxfa_ffnotify.cpp
parent9dfcdd24a599a1a2439b80e3910a2ac366fb445b (diff)
downloadpdfium-95bb9748c9292d282e2425d4500f15f5c48c2b34.tar.xz
More Execute* methods to CXFA_Nodechromium/3317
This Cl moves the two Execute* methods from CXFA_WidgetAcc to CXFA_Node. Change-Id: I4e1d6cd2159028800b855558273ca80aad365570 Reviewed-on: https://pdfium-review.googlesource.com/22550 Reviewed-by: Ryan Harrison <rharrison@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_ffnotify.cpp')
-rw-r--r--xfa/fxfa/cxfa_ffnotify.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/xfa/fxfa/cxfa_ffnotify.cpp b/xfa/fxfa/cxfa_ffnotify.cpp
index 5dc06f90b8..7fd3699f04 100644
--- a/xfa/fxfa/cxfa_ffnotify.cpp
+++ b/xfa/fxfa/cxfa_ffnotify.cpp
@@ -210,22 +210,17 @@ bool CXFA_FFNotify::FindSplitPos(CXFA_Node* pItem,
pAcc->FindSplitPos(m_pDoc->GetDocView(), iBlockIndex, fCalcHeightPos);
}
-bool CXFA_FFNotify::RunScript(CXFA_Script* pScript, CXFA_Node* pFormItem) {
+bool CXFA_FFNotify::RunScript(CXFA_Script* script, CXFA_Node* item) {
CXFA_FFDocView* pDocView = m_pDoc->GetDocView();
if (!pDocView)
return false;
- CXFA_WidgetAcc* pWidgetAcc = pFormItem->GetWidgetAcc();
- if (!pWidgetAcc)
- return false;
-
CXFA_EventParam EventParam;
EventParam.m_eType = XFA_EVENT_Unknown;
int32_t iRet;
bool bRet;
- std::tie(iRet, bRet) =
- pWidgetAcc->ExecuteBoolScript(pDocView, pScript, &EventParam);
+ std::tie(iRet, bRet) = item->ExecuteBoolScript(pDocView, script, &EventParam);
return iRet == XFA_EVENTERROR_Success && bRet;
}