summaryrefslogtreecommitdiff
path: root/xfa/fxfa/cxfa_ffdocview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fxfa/cxfa_ffdocview.cpp')
-rw-r--r--xfa/fxfa/cxfa_ffdocview.cpp21
1 files changed, 11 insertions, 10 deletions
diff --git a/xfa/fxfa/cxfa_ffdocview.cpp b/xfa/fxfa/cxfa_ffdocview.cpp
index a2c4893446..cb2155d374 100644
--- a/xfa/fxfa/cxfa_ffdocview.cpp
+++ b/xfa/fxfa/cxfa_ffdocview.cpp
@@ -113,7 +113,7 @@ void CXFA_FFDocView::StopLayout() {
if (!pRootItem)
return;
- CXFA_Node* pSubformNode = pRootItem->GetChild(0, XFA_Element::Subform);
+ CXFA_Node* pSubformNode = pRootItem->GetChild(0, XFA_Element::Subform, false);
if (!pSubformNode)
return;
@@ -269,16 +269,17 @@ int32_t CXFA_FFDocView::ProcessWidgetEvent(CXFA_EventParam* pParam,
ToNode(m_pDoc->GetXFADoc()->GetXFAObject(XFA_HASHCODE_Config));
if (pConfigItem) {
CXFA_Node* pValidateNode = nullptr;
- CXFA_Node* pAcrobatNode = pConfigItem->GetChild(0, XFA_Element::Acrobat);
- pValidateNode = pAcrobatNode
- ? pAcrobatNode->GetChild(0, XFA_Element::Validate)
- : nullptr;
+ CXFA_Node* pAcrobatNode =
+ pConfigItem->GetChild(0, XFA_Element::Acrobat, false);
+ pValidateNode =
+ pAcrobatNode ? pAcrobatNode->GetChild(0, XFA_Element::Validate, false)
+ : nullptr;
if (!pValidateNode) {
CXFA_Node* pPresentNode =
- pConfigItem->GetChild(0, XFA_Element::Present);
- pValidateNode = pPresentNode
- ? pPresentNode->GetChild(0, XFA_Element::Validate)
- : nullptr;
+ pConfigItem->GetChild(0, XFA_Element::Present, false);
+ pValidateNode = pPresentNode ? pPresentNode->GetChild(
+ 0, XFA_Element::Validate, false)
+ : nullptr;
}
if (pValidateNode)
wsValidateStr = pValidateNode->JSNode()->GetContent(false);
@@ -295,7 +296,7 @@ int32_t CXFA_FFDocView::ProcessWidgetEvent(CXFA_EventParam* pParam,
if (!pRootItem)
return XFA_EVENTERROR_Error;
- pNode = pRootItem->GetChild(0, XFA_Element::Subform);
+ pNode = pRootItem->GetChild(0, XFA_Element::Subform, false);
}
ExecEventActivityByDeepFirst(pNode, pParam->m_eType, pParam->m_bIsFormReady,