summaryrefslogtreecommitdiff
path: root/fxjs/xfa/cjx_hostpseudomodel.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2018-01-22 21:28:58 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-01-22 21:28:58 +0000
commitbc948ce8d553422ef2a6285356e09e0261702583 (patch)
tree557fdd07a2595d6bbd84c38fab41626719c162dc /fxjs/xfa/cjx_hostpseudomodel.cpp
parent04f50cf6ce219c7526acc6304ef2efd8c151f998 (diff)
downloadpdfium-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 'fxjs/xfa/cjx_hostpseudomodel.cpp')
-rw-r--r--fxjs/xfa/cjx_hostpseudomodel.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/fxjs/xfa/cjx_hostpseudomodel.cpp b/fxjs/xfa/cjx_hostpseudomodel.cpp
index c607325a90..319761d19a 100644
--- a/fxjs/xfa/cjx_hostpseudomodel.cpp
+++ b/fxjs/xfa/cjx_hostpseudomodel.cpp
@@ -367,7 +367,7 @@ CJS_Return CJX_HostPseudoModel::resetData(
expression = runtime->ToWideString(params[0]);
if (expression.IsEmpty()) {
- pNotify->ResetData();
+ pNotify->ResetData(nullptr);
return CJS_Return(true);
}
@@ -394,11 +394,10 @@ CJS_Return CJX_HostPseudoModel::resetData(
continue;
pNode = resolveNodeRS.objects.front()->AsNode();
- pNotify->ResetData(pNode->IsWidgetReady() ? pNode->GetWidgetAcc()
- : nullptr);
+ pNotify->ResetData(pNode->IsWidgetReady() ? pNode : nullptr);
}
if (!pNode)
- pNotify->ResetData();
+ pNotify->ResetData(nullptr);
return CJS_Return(true);
}