diff options
Diffstat (limited to 'xfa/fxfa/cxfa_ffnotify.cpp')
-rw-r--r-- | xfa/fxfa/cxfa_ffnotify.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/xfa/fxfa/cxfa_ffnotify.cpp b/xfa/fxfa/cxfa_ffnotify.cpp index 1322461875..3f41620030 100644 --- a/xfa/fxfa/cxfa_ffnotify.cpp +++ b/xfa/fxfa/cxfa_ffnotify.cpp @@ -113,11 +113,11 @@ CXFA_ContainerLayoutItem* CXFA_FFNotify::OnCreateContainerLayoutItem( CXFA_ContentLayoutItem* CXFA_FFNotify::OnCreateContentLayoutItem( CXFA_Node* pNode) { - XFA_Element eType = pNode->GetElementType(); - ASSERT(eType != XFA_Element::ContentArea && eType != XFA_Element::PageArea); + ASSERT(pNode->GetElementType() != XFA_Element::ContentArea); + ASSERT(pNode->GetElementType() != XFA_Element::PageArea); // We only need to create the widget for certain types of objects. - if (!XFA_IsCreateWidget(eType)) + if (!pNode->HasCreatedUIWidget()) return new CXFA_ContentLayoutItem(pNode); CXFA_FFWidget* pWidget; @@ -343,13 +343,12 @@ void CXFA_FFNotify::OnNodeReady(CXFA_Node* pNode) { if (!pDocView) return; - XFA_Element eType = pNode->GetElementType(); - if (XFA_IsCreateWidget(eType)) { + if (pNode->HasCreatedUIWidget()) { pNode->CreateWidgetAcc(); return; } - switch (eType) { + switch (pNode->GetElementType()) { case XFA_Element::BindItems: pDocView->AddBindItem(static_cast<CXFA_BindItems*>(pNode)); break; |