diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2018-01-22 21:28:58 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-01-22 21:28:58 +0000 |
commit | bc948ce8d553422ef2a6285356e09e0261702583 (patch) | |
tree | 557fdd07a2595d6bbd84c38fab41626719c162dc /xfa/fxfa/cxfa_ffnotify.cpp | |
parent | 04f50cf6ce219c7526acc6304ef2efd8c151f998 (diff) | |
download | pdfium-bc948ce8d553422ef2a6285356e09e0261702583.tar.xz |
Remove CXFA_WidgetAcc from CXFA_FFNotify
This CL updates CXFA_FFNotify to use CXFA_Node instead of CXFA_WidgetAcc
in its methods.
Change-Id: I5036767f439ba0794a7b2b9df1898aad8390f987
Reviewed-on: https://pdfium-review.googlesource.com/23411
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_ffnotify.cpp')
-rw-r--r-- | xfa/fxfa/cxfa_ffnotify.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/xfa/fxfa/cxfa_ffnotify.cpp b/xfa/fxfa/cxfa_ffnotify.cpp index 64acc5bfdc..0d9c8518eb 100644 --- a/xfa/fxfa/cxfa_ffnotify.cpp +++ b/xfa/fxfa/cxfa_ffnotify.cpp @@ -225,14 +225,12 @@ bool CXFA_FFNotify::RunScript(CXFA_Script* script, CXFA_Node* item) { int32_t CXFA_FFNotify::ExecEventByDeepFirst(CXFA_Node* pFormNode, XFA_EVENTTYPE eEventType, bool bIsFormReady, - bool bRecursive, - CXFA_WidgetAcc* pExclude) { + bool bRecursive) { CXFA_FFDocView* pDocView = m_pDoc->GetDocView(); if (!pDocView) return XFA_EVENTERROR_NotExist; - return pDocView->ExecEventActivityByDeepFirst( - pFormNode, eEventType, bIsFormReady, bRecursive, - pExclude ? pExclude->GetNode() : nullptr); + return pDocView->ExecEventActivityByDeepFirst(pFormNode, eEventType, + bIsFormReady, bRecursive); } void CXFA_FFNotify::AddCalcValidate(CXFA_Node* pNode) { @@ -288,12 +286,12 @@ WideString CXFA_FFNotify::GetCurrentDateTime() { dataTime.GetSecond()); } -void CXFA_FFNotify::ResetData(CXFA_WidgetAcc* pWidgetAcc) { +void CXFA_FFNotify::ResetData(CXFA_Node* pNode) { CXFA_FFDocView* pDocView = m_pDoc->GetDocView(); if (!pDocView) return; - pDocView->ResetWidgetAcc(pWidgetAcc); + pDocView->ResetNode(pNode); } int32_t CXFA_FFNotify::GetLayoutStatus() { |