From 70180648ffd01dd3716871758411d2031aaaebbe Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Wed, 2 May 2018 16:02:03 +0000 Subject: Add a CFX_XMLDocument class. This CL adds a CFX_XMLDocument to act as the XML node container. All nodes are now owned by the document and the document is returned by the CFX_XMLParser. Classes which parse XML files now store the document instead of the root node. BUG: chromium:835636 Change-Id: I1e07d6115cf14714911d6fd4c3fa920c94fd5faf Reviewed-on: https://pdfium-review.googlesource.com/31313 Reviewed-by: Henrique Nakashima Commit-Queue: dsinclair --- xfa/fxfa/cxfa_ffdoc.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'xfa/fxfa/cxfa_ffdoc.h') diff --git a/xfa/fxfa/cxfa_ffdoc.h b/xfa/fxfa/cxfa_ffdoc.h index dacc246378..356a157437 100644 --- a/xfa/fxfa/cxfa_ffdoc.h +++ b/xfa/fxfa/cxfa_ffdoc.h @@ -19,6 +19,7 @@ class CFGAS_PDFFontMgr; class CFX_ChecksumContext; class CFX_DIBitmap; +class CFX_XMLDocument; class CPDF_Document; class CPDF_Object; class CXFA_FFApp; @@ -59,7 +60,7 @@ class CXFA_FFDoc { return m_pDocEnvironment.Get(); } FormType GetFormType() const { return m_FormType; } - + CFX_XMLDocument* GetXMLDocument() const { return m_pXMLDoc.get(); } CXFA_FFDocView* CreateDocView(); @@ -85,7 +86,7 @@ class CXFA_FFDoc { UnownedPtr const m_pDocEnvironment; UnownedPtr const m_pApp; UnownedPtr m_pPDFDoc; - std::unique_ptr m_pXMLRoot; + std::unique_ptr m_pXMLDoc; std::unique_ptr m_pNotify; std::unique_ptr m_pDocument; std::unique_ptr m_DocView; -- cgit v1.2.3