summaryrefslogtreecommitdiff
path: root/xfa/fxfa/cxfa_ffwidgethandler.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-12-14 19:48:44 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-12-14 19:48:44 +0000
commitdcbb8e53e604178dc97d12846ddbdef88be41297 (patch)
treedc58158143f2a6a590007dfe137e7053b25357e5 /xfa/fxfa/cxfa_ffwidgethandler.cpp
parentfe9d640ea90cfccac39b6475dad9df62072542fc (diff)
downloadpdfium-dcbb8e53e604178dc97d12846ddbdef88be41297.tar.xz
Fold CXFA_ValidateData into CXFA_Validate
The ValidateData class is a thin wrapper around the Validate class. Now that the Validate class exists we can fold the methods from ValidateData into Validate. Change-Id: I1e72f4b7bddeb22a311f4fe9a5940204221b6d2a Reviewed-on: https://pdfium-review.googlesource.com/21150 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_ffwidgethandler.cpp')
-rw-r--r--xfa/fxfa/cxfa_ffwidgethandler.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/xfa/fxfa/cxfa_ffwidgethandler.cpp b/xfa/fxfa/cxfa_ffwidgethandler.cpp
index c4483c6a1e..39919bc1e7 100644
--- a/xfa/fxfa/cxfa_ffwidgethandler.cpp
+++ b/xfa/fxfa/cxfa_ffwidgethandler.cpp
@@ -16,6 +16,7 @@
#include "xfa/fxfa/parser/cxfa_layoutprocessor.h"
#include "xfa/fxfa/parser/cxfa_measurement.h"
#include "xfa/fxfa/parser/cxfa_node.h"
+#include "xfa/fxfa/parser/cxfa_validate.h"
CXFA_FFWidgetHandler::CXFA_FFWidgetHandler(CXFA_FFDocView* pDocView)
: m_pDocView(pDocView) {}
@@ -193,9 +194,8 @@ bool CXFA_FFWidgetHandler::HasEvent(CXFA_WidgetAcc* pWidgetAcc,
return calcData.HasValidNode() && calcData.GetScriptData().HasValidNode();
}
case XFA_EVENT_Validate: {
- CXFA_ValidateData validateData = pWidgetAcc->GetValidateData(false);
- return validateData.HasValidNode() &&
- validateData.GetScriptData().HasValidNode();
+ CXFA_Validate* validate = pWidgetAcc->GetValidate(false);
+ return validate && validate->GetScriptData().HasValidNode();
}
default:
break;