summaryrefslogtreecommitdiff
path: root/xfa/fxfa/cxfa_ffnotify.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2018-01-23 16:52:14 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-01-23 16:52:14 +0000
commit8a0941d6deeee75bf1f9f51a00e61a15d3aa18d1 (patch)
tree7e7652eaaa9a5ffe41fe73d05059839e0b4a5688 /xfa/fxfa/cxfa_ffnotify.cpp
parent66b9fa0e45b9b31882f0b78bb9213f634e211bbf (diff)
downloadpdfium-8a0941d6deeee75bf1f9f51a00e61a15d3aa18d1.tar.xz
Remove CXFA_WidgetAcc from CXFA_FFDocView methods
This CL updates CXFA_FFDocView methods and members to use CXFA_Node objects instead of CXFA_WidgetAcc objects. Change-Id: Ic79af39ef49152a6d50ed5acfc153063db39353d Reviewed-on: https://pdfium-review.googlesource.com/23590 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.cpp18
1 files changed, 6 insertions, 12 deletions
diff --git a/xfa/fxfa/cxfa_ffnotify.cpp b/xfa/fxfa/cxfa_ffnotify.cpp
index 072359b621..91d1a65997 100644
--- a/xfa/fxfa/cxfa_ffnotify.cpp
+++ b/xfa/fxfa/cxfa_ffnotify.cpp
@@ -240,8 +240,8 @@ void CXFA_FFNotify::AddCalcValidate(CXFA_Node* pNode) {
if (!pNode->GetWidgetAcc())
return;
- pDocView->AddCalculateWidgetAcc(pNode->GetWidgetAcc());
- pDocView->AddValidateWidget(pNode->GetWidgetAcc());
+ pDocView->AddCalculateNode(pNode);
+ pDocView->AddValidateNode(pNode);
}
CXFA_FFDoc* CXFA_FFNotify::GetHDOC() {
@@ -315,20 +315,14 @@ void CXFA_FFNotify::RunSubformIndexChange(CXFA_Node* pSubformNode) {
CXFA_Node* CXFA_FFNotify::GetFocusWidgetNode() {
CXFA_FFDocView* pDocView = m_pDoc->GetDocView();
- if (!pDocView)
- return nullptr;
-
- return pDocView->GetFocusWidgetAcc()
- ? pDocView->GetFocusWidgetAcc()->GetNode()
- : nullptr;
+ return pDocView ? pDocView->GetFocusNode() : nullptr;
}
void CXFA_FFNotify::SetFocusWidgetNode(CXFA_Node* pNode) {
CXFA_FFDocView* pDocView = m_pDoc->GetDocView();
if (!pDocView)
return;
-
- pDocView->SetFocusWidgetAcc(pNode ? pNode->GetWidgetAcc() : nullptr);
+ pDocView->SetFocusNode(pNode);
}
void CXFA_FFNotify::OnNodeReady(CXFA_Node* pNode) {
@@ -423,8 +417,8 @@ void CXFA_FFNotify::OnValueChanged(CXFA_Node* pSender,
if (bIsContainerNode) {
pWidgetNode->GetWidgetAcc()->UpdateUIDisplay(m_pDoc->GetDocView(),
nullptr);
- pDocView->AddCalculateWidgetAcc(pWidgetNode->GetWidgetAcc());
- pDocView->AddValidateWidget(pWidgetNode->GetWidgetAcc());
+ pDocView->AddCalculateNode(pWidgetNode);
+ pDocView->AddValidateNode(pWidgetNode);
} else if (pWidgetNode->GetParent()->GetElementType() ==
XFA_Element::ExclGroup) {
pWidgetNode->GetWidgetAcc()->UpdateUIDisplay(m_pDoc->GetDocView(),