diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-05-23 10:21:54 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-05-23 15:38:39 +0000 |
commit | c4ecd7b2e10e37a3b29eb380472fbee4936522ac (patch) | |
tree | 2823d3558eeae73e91731fd6e9f3d7b346a33393 /xfa/fxfa/cxfa_ffwidgethandler.cpp | |
parent | 1b02d01804039a9f0584c081294ceb07e52b9bdc (diff) | |
download | pdfium-c4ecd7b2e10e37a3b29eb380472fbee4936522ac.tar.xz |
Cleanup default values and methods in CXFA_Widgetdata
Change-Id: Ie591de17aba54d6d0f96b1133be7d899bab577cf
Reviewed-on: https://pdfium-review.googlesource.com/5660
Reviewed-by: Nicolás Peña <npm@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_ffwidgethandler.cpp')
-rw-r--r-- | xfa/fxfa/cxfa_ffwidgethandler.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xfa/fxfa/cxfa_ffwidgethandler.cpp b/xfa/fxfa/cxfa_ffwidgethandler.cpp index ffc1c27070..6fe24fee29 100644 --- a/xfa/fxfa/cxfa_ffwidgethandler.cpp +++ b/xfa/fxfa/cxfa_ffwidgethandler.cpp @@ -177,13 +177,14 @@ bool CXFA_FFWidgetHandler::HasEvent(CXFA_WidgetAcc* pWidgetAcc, return calc && calc.GetScript(); } case XFA_EVENT_Validate: { - CXFA_Validate val = pWidgetAcc->GetValidate(); + CXFA_Validate val = pWidgetAcc->GetValidate(false); return val && val.GetScript(); } default: break; } - return !pWidgetAcc->GetEventByActivity(gs_EventActivity[eEventType]).empty(); + return !pWidgetAcc->GetEventByActivity(gs_EventActivity[eEventType], false) + .empty(); } int32_t CXFA_FFWidgetHandler::ProcessEvent(CXFA_WidgetAcc* pWidgetAcc, |