Index: xfa/fxfa/parser/xfa_layout_pagemgr_new.cpp |
diff --git a/xfa/fxfa/parser/xfa_layout_pagemgr_new.cpp b/xfa/fxfa/parser/xfa_layout_pagemgr_new.cpp |
index 78492c2702c0882523ce33a487de579cab23b6aa..58f6a6f54aa80149259a6dbfbd63f2c08215a80b 100644 |
--- a/xfa/fxfa/parser/xfa_layout_pagemgr_new.cpp |
+++ b/xfa/fxfa/parser/xfa_layout_pagemgr_new.cpp |
@@ -1507,8 +1507,7 @@ static void XFA_SyncRemoveLayoutItem(CXFA_LayoutItem* pParentLayoutItem, |
if (pCurLayoutItem->m_pFirstChild) { |
XFA_SyncRemoveLayoutItem(pCurLayoutItem, pNotify, pDocLayout); |
} |
- pNotify->OnLayoutEvent(pDocLayout, pCurLayoutItem, |
- XFA_LAYOUTEVENT_ItemRemoving); |
+ pNotify->OnLayoutItemRemoving(pDocLayout, pCurLayoutItem); |
delete pCurLayoutItem; |
pCurLayoutItem = pNextLayoutItem; |
} |
@@ -1528,8 +1527,7 @@ void CXFA_LayoutPageMgr::SaveLayoutItem(CXFA_LayoutItem* pParentLayoutItem) { |
if (pCurLayoutItem->m_pFirstChild) { |
XFA_SyncRemoveLayoutItem(pCurLayoutItem, pNotify, pDocLayout); |
} |
- pNotify->OnLayoutEvent(pDocLayout, pCurLayoutItem, |
- XFA_LAYOUTEVENT_ItemRemoving); |
+ pNotify->OnLayoutItemRemoving(pDocLayout, pCurLayoutItem); |
delete pCurLayoutItem; |
pCurLayoutItem = pNextLayoutItem; |
continue; |
@@ -1679,8 +1677,7 @@ void CXFA_LayoutPageMgr::MergePageSetContents() { |
CXFA_LayoutItem* pLayoutItem = static_cast<CXFA_LayoutItem*>( |
pNode->GetUserData(XFA_LAYOUTITEMKEY)); |
if (pLayoutItem) { |
- pNotify->OnLayoutEvent(pDocLayout, pLayoutItem, |
- XFA_LAYOUTEVENT_ItemRemoving); |
+ pNotify->OnLayoutItemRemoving(pDocLayout, pLayoutItem); |
delete pLayoutItem; |
} |
} |
@@ -1740,8 +1737,7 @@ void CXFA_LayoutPageMgr::MergePageSetContents() { |
CXFA_LayoutItem* pLayoutItem = static_cast<CXFA_LayoutItem*>( |
pChildNode->GetUserData(XFA_LAYOUTITEMKEY)); |
if (pLayoutItem) { |
- pNotify->OnLayoutEvent(pDocLayout, pLayoutItem, |
- XFA_LAYOUTEVENT_ItemRemoving); |
+ pNotify->OnLayoutItemRemoving(pDocLayout, pLayoutItem); |
delete pLayoutItem; |
} |
} |
@@ -1749,8 +1745,7 @@ void CXFA_LayoutPageMgr::MergePageSetContents() { |
CXFA_LayoutItem* pLayoutItem = static_cast<CXFA_LayoutItem*>( |
pNode->GetUserData(XFA_LAYOUTITEMKEY)); |
if (pLayoutItem) { |
- pNotify->OnLayoutEvent(pDocLayout, pLayoutItem, |
- XFA_LAYOUTEVENT_ItemRemoving); |
+ pNotify->OnLayoutItemRemoving(pDocLayout, pLayoutItem); |
delete pLayoutItem; |
} |
} |
@@ -1814,9 +1809,7 @@ void XFA_SyncContainer(CXFA_FFNotify* pNotify, |
dwStatus = |
(bVisibleItem ? XFA_LAYOUTSTATUS_Visible : 0) | dwRelevantContainer; |
} |
- pNotify->OnLayoutEvent(pDocLayout, pContainerItem, XFA_LAYOUTEVENT_ItemAdded, |
- (void*)(uintptr_t)nPageIndex, |
- (void*)(uintptr_t)dwStatus); |
+ pNotify->OnLayoutItemAdd(pDocLayout, pContainerItem, nPageIndex, dwStatus); |
for (CXFA_LayoutItem* pChild = pContainerItem->m_pFirstChild; pChild; |
pChild = pChild->m_pNextSibling) { |
if (pChild->IsContentLayoutItem()) { |