summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/cxfa_document_parser.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2018-04-10 13:01:07 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-04-10 13:01:07 +0000
commit4027887ee29a7f4920b03041068bff9bde239782 (patch)
tree5f3978ef04fbc8c3195cbadc3ed560c1712ab950 /xfa/fxfa/parser/cxfa_document_parser.cpp
parente372ad7333bdd6bb0c579cf074843ef0c6f3414f (diff)
downloadpdfium-4027887ee29a7f4920b03041068bff9bde239782.tar.xz
Merge CXFA_SimpleParser::{Start|Do}Parsechromium/3394
The StartParse and DoParse methods have been merged into a single Parse method. Change-Id: I1310bda90b853c11af8b8d1794de6b5c19e931cf Reviewed-on: https://pdfium-review.googlesource.com/30010 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/cxfa_document_parser.cpp')
-rw-r--r--xfa/fxfa/parser/cxfa_document_parser.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/xfa/fxfa/parser/cxfa_document_parser.cpp b/xfa/fxfa/parser/cxfa_document_parser.cpp
index 8df91bc1cc..18f9955210 100644
--- a/xfa/fxfa/parser/cxfa_document_parser.cpp
+++ b/xfa/fxfa/parser/cxfa_document_parser.cpp
@@ -23,12 +23,10 @@ int32_t CXFA_DocumentParser::Parse(const RetainPtr<IFX_SeekableStream>& pStream,
m_pDocument.reset();
m_nodeParser.CloseParser();
- m_nodeParser.StartParse(pStream, ePacketID);
-
m_pDocument = pdfium::MakeUnique<CXFA_Document>(GetNotify());
m_nodeParser.SetFactory(m_pDocument.get());
- int32_t nRetStatus = m_nodeParser.DoParse();
+ int32_t nRetStatus = m_nodeParser.Parse(pStream, ePacketID);
if (nRetStatus == XFA_PARSESTATUS_Done) {
ASSERT(m_pDocument);
m_pDocument->SetRoot(m_nodeParser.GetRootNode());