summaryrefslogtreecommitdiff
path: root/xfa/fxfa/app/xfa_ffdoc.cpp
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-07-11 08:42:33 -0700
committerCommit bot <commit-bot@chromium.org>2016-07-11 08:42:33 -0700
commit34f86b0c7816289d2a0b402d1909572f4e95613b (patch)
treef4cc3d2442311723fd01d03689964fa0693bb5b1 /xfa/fxfa/app/xfa_ffdoc.cpp
parenta1b0772321e9b839073b9b312bac22143f2d4011 (diff)
downloadpdfium-34f86b0c7816289d2a0b402d1909572f4e95613b.tar.xz
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
Diffstat (limited to 'xfa/fxfa/app/xfa_ffdoc.cpp')
-rw-r--r--xfa/fxfa/app/xfa_ffdoc.cpp7
1 files changed, 3 insertions, 4 deletions
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();
}