From 34f86b0c7816289d2a0b402d1909572f4e95613b Mon Sep 17 00:00:00 2001 From: dsinclair Date: Mon, 11 Jul 2016 08:42:33 -0700 Subject: Break xfa_parser_imp apart This CL splits the three parsers into individual files to make working with the code easier. Review-Url: https://codereview.chromium.org/2129963002 --- xfa/fxfa/app/xfa_ffdoc.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'xfa/fxfa/app/xfa_ffdoc.cpp') diff --git a/xfa/fxfa/app/xfa_ffdoc.cpp b/xfa/fxfa/app/xfa_ffdoc.cpp index 6320cb9b2a..294839152e 100644 --- a/xfa/fxfa/app/xfa_ffdoc.cpp +++ b/xfa/fxfa/app/xfa_ffdoc.cpp @@ -23,8 +23,6 @@ #include "xfa/fxfa/include/xfa_fontmgr.h" #include "xfa/fxfa/parser/xfa_document.h" #include "xfa/fxfa/parser/xfa_document_serialize.h" -#include "xfa/fxfa/parser/xfa_parser_imp.h" -#include "xfa/fxfa/parser/xfa_parser_imp.h" namespace { @@ -168,7 +166,7 @@ uint32_t CXFA_FFDoc::GetDocType() { int32_t CXFA_FFDoc::StartLoad() { m_pNotify.reset(new CXFA_FFNotify(this)); m_pDocumentParser.reset(new CXFA_DocumentParser(m_pNotify.get())); - int32_t iStatus = m_pDocumentParser->StartParse(m_pStream); + int32_t iStatus = m_pDocumentParser->StartParse(m_pStream, XFA_XDPPACKET_XDP); return iStatus; } @@ -275,7 +273,8 @@ int32_t CXFA_FFDoc::DoLoad(IFX_Pause* pPause) { return XFA_PARSESTATUS_SyntaxErr; CXFA_Node* pRootNode = nullptr; - if (pParser->StartParse(m_pStream) == XFA_PARSESTATUS_Ready && + if (pParser->StartParse(m_pStream, XFA_XDPPACKET_XDP) == + XFA_PARSESTATUS_Ready && pParser->DoParse(nullptr) == XFA_PARSESTATUS_Done) { pRootNode = pParser->GetRootNode(); } -- cgit v1.2.3