Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Issue 2123133004: Remove IXFA_Parser, cleanup XFA parser code. (Closed)

Created:
4 years, 5 months ago by dsinclair
Modified:
4 years, 5 months ago
Reviewers:
Lei Zhang, Wei Li
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Remove IXFA_Parser, cleanup XFA parser code. The IXFA_Parser only created a CXFA_SimpleParser, the CXFA_DocumentParser is only created in one spot and doesn't need all the IXFA_Parser methods. This CL removes IXFA_Parser, instantiates the CXFA_SimpleParser where needed and cleans up surrounding code. Committed: https://pdfium.googlesource.com/pdfium/+/a1b0772321e9b839073b9b312bac22143f2d4011

Patch Set 1 #

Total comments: 13

Patch Set 2 : Missing include #

Total comments: 12

Patch Set 3 : Review feedback #

Patch Set 4 : Rebase to master #

Patch Set 5 : Rebase to master #

Patch Set 6 : Rebase to master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+216 lines, -320 lines) Patch
M BUILD.gn View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M testing/libfuzzer/pdf_xml_fuzzer.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M xfa.gyp View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M xfa/fxfa/app/xfa_ffdoc.cpp View 1 2 7 chunks +36 lines, -36 lines 0 comments Download
M xfa/fxfa/app/xfa_ffwidgethandler.cpp View 3 chunks +3 lines, -4 lines 0 comments Download
M xfa/fxfa/fm2js/xfa_fm2jscontext.cpp View 4 chunks +3 lines, -7 lines 0 comments Download
M xfa/fxfa/include/xfa_ffdoc.h View 2 chunks +3 lines, -3 lines 0 comments Download
M xfa/fxfa/parser/xfa_basic_imp.cpp View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M xfa/fxfa/parser/xfa_document.h View 2 chunks +3 lines, -1 line 0 comments Download
M xfa/fxfa/parser/xfa_document_datamerger_imp.cpp View 1 2 3 4 2 chunks +2 lines, -4 lines 0 comments Download
M xfa/fxfa/parser/xfa_document_imp.cpp View 3 chunks +5 lines, -2 lines 0 comments Download
M xfa/fxfa/parser/xfa_document_layout_imp.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M xfa/fxfa/parser/xfa_document_serialize.cpp View 1 2 4 chunks +15 lines, -20 lines 0 comments Download
M xfa/fxfa/parser/xfa_layout_appadapter.cpp View 1 chunk +1 line, -3 lines 0 comments Download
M xfa/fxfa/parser/xfa_layout_itemlayout.cpp View 7 chunks +6 lines, -9 lines 0 comments Download
M xfa/fxfa/parser/xfa_layout_pagemgr_new.cpp View 1 2 3 4 10 chunks +11 lines, -16 lines 0 comments Download
M xfa/fxfa/parser/xfa_locale.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M xfa/fxfa/parser/xfa_localemgr.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M xfa/fxfa/parser/xfa_localevalue.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M xfa/fxfa/parser/xfa_object_imp.cpp View 1 2 32 chunks +36 lines, -40 lines 0 comments Download
D xfa/fxfa/parser/xfa_parser.h View 1 chunk +0 lines, -35 lines 0 comments Download
M xfa/fxfa/parser/xfa_parser_imp.h View 1 2 2 chunks +23 lines, -30 lines 0 comments Download
M xfa/fxfa/parser/xfa_parser_imp.cpp View 1 2 3 6 chunks +10 lines, -51 lines 0 comments Download
M xfa/fxfa/parser/xfa_script_datawindow.cpp View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M xfa/fxfa/parser/xfa_script_eventpseudomodel.cpp View 1 2 3 4 5 2 chunks +1 line, -2 lines 0 comments Download
M xfa/fxfa/parser/xfa_script_hostpseudomodel.cpp View 1 2 3 4 5 31 chunks +47 lines, -31 lines 0 comments Download
M xfa/fxfa/parser/xfa_script_imp.cpp View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M xfa/fxfa/parser/xfa_script_layoutpseudomodel.cpp View 1 2 3 4 5 7 chunks +6 lines, -7 lines 0 comments Download
M xfa/fxfa/parser/xfa_script_logpseudomodel.cpp View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M xfa/fxfa/parser/xfa_script_nodehelper.cpp View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M xfa/fxfa/parser/xfa_script_resolveprocessor.cpp View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M xfa/fxfa/parser/xfa_script_signaturepseudomodel.cpp View 1 2 3 4 5 5 chunks +4 lines, -5 lines 0 comments Download
M xfa/fxfa/parser/xfa_utils_imp.cpp View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 21 (11 generated)
dsinclair
PTAL. https://codereview.chromium.org/2123133004/diff/1/xfa/fxfa/app/xfa_ffdoc.cpp File xfa/fxfa/app/xfa_ffdoc.cpp (left): https://codereview.chromium.org/2123133004/diff/1/xfa/fxfa/app/xfa_ffdoc.cpp#oldcode168 xfa/fxfa/app/xfa_ffdoc.cpp:168: CXFA_DocumentParser* pDocParser = new CXFA_DocumentParser(m_pNotify); This ownership was ...
4 years, 5 months ago (2016-07-06 19:19:11 UTC) #2
Lei Zhang
https://codereview.chromium.org/2123133004/diff/1/xfa/fxfa/app/xfa_ffdoc.cpp File xfa/fxfa/app/xfa_ffdoc.cpp (right): https://codereview.chromium.org/2123133004/diff/1/xfa/fxfa/app/xfa_ffdoc.cpp#newcode152 xfa/fxfa/app/xfa_ffdoc.cpp:152: m_pDocumentParser(nullptr), No need to initialize a std::unique_ptr. https://codereview.chromium.org/2123133004/diff/1/xfa/fxfa/app/xfa_ffdoc.cpp#newcode171 xfa/fxfa/app/xfa_ffdoc.cpp:171: ...
4 years, 5 months ago (2016-07-06 23:02:24 UTC) #3
dsinclair
https://codereview.chromium.org/2123133004/diff/20001/xfa/fxfa/parser/xfa_object_imp.cpp File xfa/fxfa/parser/xfa_object_imp.cpp (right): https://codereview.chromium.org/2123133004/diff/20001/xfa/fxfa/parser/xfa_object_imp.cpp#newcode938 xfa/fxfa/parser/xfa_object_imp.cpp:938: new CXFA_SimpleParser(m_pDocument, FALSE)); On 2016/07/06 23:02:23, Lei Zhang wrote: ...
4 years, 5 months ago (2016-07-07 13:54:44 UTC) #4
Lei Zhang
lgtm
4 years, 5 months ago (2016-07-07 20:36:59 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2123133004/60001
4 years, 5 months ago (2016-07-07 23:33:01 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: linux_no_v8 on master.tryserver.client.pdfium (JOB_FAILED, https://build.chromium.org/p/tryserver.client.pdfium/builders/linux_no_v8/builds/1292) linux_xfa on master.tryserver.client.pdfium (JOB_FAILED, ...
4 years, 5 months ago (2016-07-08 15:32:19 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2123133004/80001
4 years, 5 months ago (2016-07-11 13:27:16 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: win_no_v8 on master.tryserver.client.pdfium (JOB_FAILED, https://build.chromium.org/p/tryserver.client.pdfium/builders/win_no_v8/builds/1301)
4 years, 5 months ago (2016-07-11 13:54:37 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2123133004/100001
4 years, 5 months ago (2016-07-11 14:03:26 UTC) #19
commit-bot: I haz the power
4 years, 5 months ago (2016-07-11 15:21:04 UTC) #21
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://pdfium.googlesource.com/pdfium/+/a1b0772321e9b839073b9b312bac22143f2d...

Powered by Google App Engine
This is Rietveld 408576698