From 93cfa060aa6324b2a79f25782e3c986750479ac5 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Wed, 10 Jan 2018 16:40:56 +0000 Subject: Remove 2 param CXFA_Node::GetNodeItem This CL removes the CXFA_Node::GetNodeItem(kind, object_type) method in favour of explicit methods. All of the callers passed in a XFA_ObjectType::ContainerNode. Change-Id: I713184d3fa188a122284f50ac2a6b0fd3d7aed26 Reviewed-on: https://pdfium-review.googlesource.com/22651 Reviewed-by: Henrique Nakashima Reviewed-by: Ryan Harrison Commit-Queue: dsinclair --- xfa/fxfa/parser/cxfa_layoutprocessor.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'xfa/fxfa/parser/cxfa_layoutprocessor.cpp') diff --git a/xfa/fxfa/parser/cxfa_layoutprocessor.cpp b/xfa/fxfa/parser/cxfa_layoutprocessor.cpp index 36caa0c0a6..b074de13eb 100644 --- a/xfa/fxfa/parser/cxfa_layoutprocessor.cpp +++ b/xfa/fxfa/parser/cxfa_layoutprocessor.cpp @@ -101,8 +101,7 @@ bool CXFA_LayoutProcessor::IncrementLayout() { return DoLayout() == 100; } for (CXFA_Node* pNode : m_rgChangedContainers) { - CXFA_Node* pParentNode = - pNode->GetNodeItem(XFA_NODEITEM_Parent, XFA_ObjectType::ContainerNode); + CXFA_Node* pParentNode = pNode->GetContainerParent(); if (!pParentNode) return false; if (!CXFA_ItemLayoutProcessor::IncrementRelayoutNode(this, pNode, -- cgit v1.2.3