Index: xfa/fxfa/parser/xfa_layout_appadapter.cpp |
diff --git a/xfa/fxfa/parser/xfa_layout_appadapter.cpp b/xfa/fxfa/parser/xfa_layout_appadapter.cpp |
index e223ab8ce74f85fac99b0ee8a446a104f709820a..8f08676b35fec20a670421437853a1259ce57b7d 100644 |
--- a/xfa/fxfa/parser/xfa_layout_appadapter.cpp |
+++ b/xfa/fxfa/parser/xfa_layout_appadapter.cpp |
@@ -50,12 +50,12 @@ void XFA_ReleaseLayoutItem(CXFA_LayoutItem* pLayoutItem) { |
while (pNode) { |
CXFA_LayoutItem* pNext = pNode->m_pNextSibling; |
pNode->m_pParent = nullptr; |
- pNotify->OnLayoutEvent(pDocLayout, static_cast<CXFA_LayoutItem*>(pNode), |
- XFA_LAYOUTEVENT_ItemRemoving); |
+ pNotify->OnLayoutItemRemoving(pDocLayout, |
+ static_cast<CXFA_LayoutItem*>(pNode)); |
XFA_ReleaseLayoutItem(pNode); |
pNode = pNext; |
} |
- pNotify->OnLayoutEvent(pDocLayout, pLayoutItem, XFA_LAYOUTEVENT_ItemRemoving); |
+ pNotify->OnLayoutItemRemoving(pDocLayout, pLayoutItem); |
if (pLayoutItem->m_pFormNode->GetClassID() == XFA_ELEMENT_PageArea) { |
pNotify->OnPageEvent(static_cast<CXFA_ContainerLayoutItem*>(pLayoutItem), |
XFA_PAGEEVENT_PageRemoved); |