summaryrefslogtreecommitdiff
path: root/fpdfsdk/cpdfsdk_widget.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2018-01-04 11:38:38 -0500
committerChromium commit bot <commit-bot@chromium.org>2018-01-04 18:26:32 +0000
commitc1e5756a43020665855d9d309c47b9dfe625b54f (patch)
tree76d14b1c20299fd6687927d428ba4cccce1ab0fe /fpdfsdk/cpdfsdk_widget.cpp
parentd9dfb6cc16f689753e9b3f896fbda1aec791051a (diff)
downloadpdfium-c1e5756a43020665855d9d309c47b9dfe625b54f.tar.xz
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 <rharrison@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fpdfsdk/cpdfsdk_widget.cpp')
-rw-r--r--fpdfsdk/cpdfsdk_widget.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/fpdfsdk/cpdfsdk_widget.cpp b/fpdfsdk/cpdfsdk_widget.cpp
index ff82283516..9911370dfc 100644
--- a/fpdfsdk/cpdfsdk_widget.cpp
+++ b/fpdfsdk/cpdfsdk_widget.cpp
@@ -319,8 +319,10 @@ void CPDFSDK_Widget::Synchronize(bool bSynchronizeElse) {
}
}
- if (bSynchronizeElse)
- pWidgetAcc->ProcessValueChanged();
+ if (bSynchronizeElse) {
+ CPDFXFA_Context* context = m_pPageView->GetFormFillEnv()->GetXFAContext();
+ context->GetXFADocView()->ProcessValueChanged(pWidgetAcc);
+ }
}
void CPDFSDK_Widget::SynchronizeXFAValue() {