summaryrefslogtreecommitdiff
path: root/xfa/fxfa/cxfa_ffwidgethandler.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-07-03 17:17:54 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-07-03 17:17:54 +0000
commitbc7e310b027809562eb589bfef72737c193ee27a (patch)
tree4ae752970fd391c9687d1b17fc0c385373398896 /xfa/fxfa/cxfa_ffwidgethandler.cpp
parent1c14ae2fbe1ae95dac3a7f5e60d049d9630aef02 (diff)
downloadpdfium-bc7e310b027809562eb589bfef72737c193ee27a.tar.xz
Use UnownedPtr<> in cxfa_{ffwidgethandler,imagrenderer,loadercontext}.h
Change-Id: I25496c9792a99ca27d2ab84c267770ff941cf921 Reviewed-on: https://pdfium-review.googlesource.com/36912 Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_ffwidgethandler.cpp')
-rw-r--r--xfa/fxfa/cxfa_ffwidgethandler.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/xfa/fxfa/cxfa_ffwidgethandler.cpp b/xfa/fxfa/cxfa_ffwidgethandler.cpp
index a820db8083..eb9a4ca63a 100644
--- a/xfa/fxfa/cxfa_ffwidgethandler.cpp
+++ b/xfa/fxfa/cxfa_ffwidgethandler.cpp
@@ -234,11 +234,11 @@ int32_t CXFA_FFWidgetHandler::ProcessEvent(CXFA_Node* pNode,
switch (pParam->m_eType) {
case XFA_EVENT_Calculate:
- return pNode->ProcessCalculate(m_pDocView);
+ return pNode->ProcessCalculate(m_pDocView.Get());
case XFA_EVENT_Validate:
if (m_pDocView->GetDoc()->GetDocEnvironment()->IsValidationsEnabled(
m_pDocView->GetDoc())) {
- return pNode->ProcessValidate(m_pDocView, 0);
+ return pNode->ProcessValidate(m_pDocView.Get(), 0);
}
return XFA_EVENTERROR_Disabled;
case XFA_EVENT_InitCalculate: {
@@ -247,15 +247,14 @@ int32_t CXFA_FFWidgetHandler::ProcessEvent(CXFA_Node* pNode,
return XFA_EVENTERROR_NotExist;
if (pNode->IsUserInteractive())
return XFA_EVENTERROR_Disabled;
- return pNode->ExecuteScript(m_pDocView, calc->GetScriptIfExists(),
+ return pNode->ExecuteScript(m_pDocView.Get(), calc->GetScriptIfExists(),
pParam);
}
default:
break;
}
- int32_t iRet = pNode->ProcessEvent(m_pDocView,
- gs_EventActivity[pParam->m_eType], pParam);
- return iRet;
+ return pNode->ProcessEvent(m_pDocView.Get(),
+ gs_EventActivity[pParam->m_eType], pParam);
}
CXFA_FFWidget* CXFA_FFWidgetHandler::CreateWidget(CXFA_FFWidget* hParent,