From c1e5756a43020665855d9d309c47b9dfe625b54f Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Thu, 4 Jan 2018 11:38:38 -0500 Subject: Move ProcessValueChanged from CXFA_WidgetAcc to CXFA_FFDocView The ProcessValueChanged method works on the DocView data and uses the WidgetAcc as a parameter. This CL moves the code to docview and passes the WidgetAcc as a parameter. Change-Id: I2f9531263c8578931bb44ef247ff281f1f8b4cf7 Reviewed-on: https://pdfium-review.googlesource.com/22253 Reviewed-by: Ryan Harrison Commit-Queue: dsinclair --- xfa/fxfa/cxfa_ffdocview.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'xfa/fxfa/cxfa_ffdocview.cpp') diff --git a/xfa/fxfa/cxfa_ffdocview.cpp b/xfa/fxfa/cxfa_ffdocview.cpp index e5d2fe12dc..cb4c72d0b3 100644 --- a/xfa/fxfa/cxfa_ffdocview.cpp +++ b/xfa/fxfa/cxfa_ffdocview.cpp @@ -672,6 +672,13 @@ void CXFA_FFDocView::InitCalculate(CXFA_Node* pNode) { nullptr); } +void CXFA_FFDocView::ProcessValueChanged(CXFA_WidgetAcc* widgetAcc) { + AddValidateWidget(widgetAcc); + AddCalculateWidgetAcc(widgetAcc); + RunCalculateWidgets(); + RunValidate(); +} + bool CXFA_FFDocView::InitValidate(CXFA_Node* pNode) { if (!m_pDoc->GetDocEnvironment()->IsValidationsEnabled(m_pDoc.Get())) return false; -- cgit v1.2.3